Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Script

Status
Not open for further replies.

nonprogrammer

Technical User
Dec 28, 2005
143
US
Hello,

I have this script
Code:
<% 
Response.write FormatDateTime(todaysDate,1)

 
%>
That is supposed to give me Day, Month, date, and Year.

I get that but it is the wrong date, for Friday, January 27, 2006 I get this Saturday, December 30, 1899

I checked my server settings, my computer settings and the dates are correct am I missing something?
 
what did you actually have for todaysDate??

did you use now()

-DNG
 
A date variable contains a number.

The number represents the amount of time SINCE Saturday, December 30, 1899 is the default date.

IF your date variable is empty such that the number is zero, then you will see this ancient date.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top