| |
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
|
|