Forum Moderators: open
I have noticed the "edited" portion and in the code and am curious if that refers to the date when the page was last edited.
Am just concerned that on some pages where the text might not change for a while, i could end up displaying a previous year's value instead of the current year value?
If my assumption is correct - would welcome advise on what may be the correct code to display the current date as opposed to the date when the page was last edited.
Thanks in advance!
Insert this script....
however it relies on the users computer to display the time/date....if the users computer is incorrect (IE 1998), it displays the incorrect time/date..
howe that helps..
Tera
There are two options that are default in FrontPage for Date and Time Stamps.
FrontPage does not have a webbot (that I know of) that will provide the current date and time. There are third party plugins for FrontPage that do this with Jbots being the most popular.
Here is an outline of the default FP Date and Timestamps you have available along with their respective code.
Combined Date and Time Stamps
2006-04-12T09:03:58-0700 - International Date and Time Format
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y-%m-%dT%H:%M:%S%Z" --> Note: The above webbot I created to adhere to the ISO Date and Time format. It's available for all, no strings attached. ;)
04/12/06
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m/%d/%y" --> April 12, 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%B %d, %Y" --> 12 April, 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" --> 12 Apr 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %b %Y" --> 12 April 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B %Y" --> 12/04/06
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d/%m/%y" --> 04.12.06
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m.%d.%y" --> 04.12.2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%m.%d.%Y" --> 12-Apr-2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d-%b-%Y" --> 2006-04-12
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y-%m-%d" --> 06-04-12
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%y-%m-%d" --> 12-04-06
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d-%m-%y" --> 12-04-2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d-%m-%Y" --> April, 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%B, %Y" --> Apr-06
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%b-%y" --> Wednesday April 12, 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%A %B %d, %Y" --> Wednesday, 12 April 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%A, %d %B %Y" --> Wednesday, 12. April 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%A, %d. %B %Y" --> Wednesday, April 12, 2006
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%A, %B %d, %Y" --> Time Stamp Examples
09:03
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%H:%M" --> 09:03:58
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%H:%M:%S" --> 09:03 -0700
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%H:%M %Z" --> 09:03:58 -0700
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%H:%M:%S %Z" --> [edited by: pageoneresults at 4:38 pm (utc) on April 12, 2006]
I will follow up on your lead. 'tis a pity there is no Frontpage functionality to display the current server date-time info.
As our budget is limited, I think we might see if we can just automatically update the page without any changes and that could then keep the year value current. I am just using this to automatically deliver the correct year for the copyright statement.