Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Date Appearance

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Date Appearance
  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 Appearance - 9/8/2005 2:20:35 AM   
  eakucera

 

Posts: 1
Score: 0
Joined: 9/8/2005
Status: offline
ok here's the deal, and i have searched the net high and low.  when i use the date function or anything similar i am getting the incorrect date.  this was working yesterday and has been working just fine ever since i started working with asp and vbscript.  the server is "Windows 2000" w/  IIS 5.0 .  I have already rebooted the server and checked the system date and time and all looks normal.  But.  see below.
 ============================================== this....<%=now()%>should display the current date and time...08/09/2005 11.18.19  ============================================== 
this....<%=date()%>should display the current date...08/09/2005 
============================================== 
this....<% Response.Write(Now()) %>should display the current date and time...08/09/2005 11.18.19  
============================================== 
this....<% Response.Write(Date()) %>should display the current date...08/09/2005 ============================================== Notice above that the date is INCORRECT in every instance. but the time is ok.  it is displaying the month and date reversed with out using any 'format' functions.this is where it gets wierd...  when i use this function to identify the month of the date, it displays correctly. see below. response.Write(datepart("M", date))should display the current month number, and it does. correctly!9 ============================================== Like i said earlier this worked before, nothing has changed.  another strange thing. I purposly changed the date to a couple months ago and it displayed correctly.  changed it back to todays date and it went back to this same strange behavior.  Do you have any idea what is going on?  Yes i am aware that i can change the way the date appears, but that's not really the point.  Is there updates to vbscript?  or IIS?  where would i go to get updates? thanks for any help, -Ernie
 
 
Post #: 1
 
 RE: Date Appearance - 9/8/2005 5:58:57 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Here in Europe we write our dates like:

8 September 2005 = 08/09/2005

In the US it is vice versa:

8 September 2005 = 09/08/2005

Maybe you time zone setting? (in your example i don't see any errors)

_____________________________

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

http://www.visualbasicscript.com

(in reply to eakucera)
 
 
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 Appearance 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