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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

date() problem 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm filtering a recordset using the date() expression such that only records with todays date are shown on a web page. However date() is producing yesterdays records - using date()+1 receives todays records. Does anyone know how to solve this. I'm using DWUD/IIS & Access.
Thanks in advance
 
Are u and your server at different domains???
IF IIS Server is at a diff domain this will arise Sir
 
Thanks for the reply but we are not in different domains. Another interesting aspect of it is that after 12 midday the problem does not arise and day() works. For some reason clock relating to the database on the server is not GMT.
 
Sir i meant whether u and your IIS server at different time domains.
u at India and Server at US??????
 
It sounds like the date on the server is diferrent from what you expect it to be. It is possible that they have the date set 12 hours off.

Try doing a response.write against the date() to show exactly what time the server thinks it is. That should answer your question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top