Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Date() driving me INSANE!!!

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,33184
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Date() driving me INSANE!!!
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Date() driving me INSANE!!! - 4/6/2006 3:47:10 AM   
  calgarychinese

 

Posts: 4
Score: 0
Joined: 4/6/2006
Status: offline
Hi there

I have this report on an ASP page and I don't know since when did it start to be a problem.

The report of the header I print the date when the report is generated, so it looks like:

response.write "<DIV align='right'><font face=arial size=1><i>Generated on " & Date() & ".</i></font></DIV><BR>", 0

As simple as that.

Now, I'm running the server on my own machine, and I looked at Control Panel's Regional setting, my short date format is
yyyy-MM-dd, and my long date format is
MMMM d, yyyy

I have added a few languages for input such as 2 chinese languages and a English US. (I use English Canada, but on the Regional Options tab I have it set to English Canada, so I'm assuming the settings there are my default settings).

So why the h___ is the report showing today's date (6 April 2006) as

4/6/2006????? I was totally expecting 2006-04-06 according to my short date format.

Any other place that I need to look at?

Thanks
CC
 
 
Post #: 1
 
 RE: Date() driving me INSANE!!! - 4/6/2006 4:47:13 PM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Change date and time with LCID:
http://www.webwizguide.info/asp/faq/date_time_settings.asp

Date Functions:
http://www.4guysfromrolla.com/webtech/faq/Intermediate/faq2.shtml

More DATE functions:
http://www.codetricks.com/article.php?cat=asp&id=14&pagenumber=5

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to calgarychinese)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Date() driving me INSANE!!! Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts