PDA

View Full Version : Date problem....please help...


maryann
09-14-2007, 12:04 PM
Hi,

I got a problem regarding the date. The default date displays in my page is not the current date, or not getting from the date of my PC. Example, the current date is September 14, 2007 and the date saved in the database is September 13, 2007. I used the date command "TODAY" in my code to get the current date but always delayed one day. If I run the program in localhost then the date is correct but whenever I run thru your server then the date delays one day. My doubt is maybe the DISCOUNTASP server is located in USA and the date is taking from the server and not from the user's PC. I am in New Zealand that's why we are ahead of one day. Please correct me if I'm wrong about it and please help me how to solve this problem. Thank you once again.


Regards,
Mary Ann

bruce
09-18-2007, 08:55 AM
When you application insert a date into the database, it always uses the date / time on the server.

You'll need to adjust the date time programatically before inserting into the database.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)