The default date displays in my page is not the current date

Discussion in 'Visual Studio' started by maryann, Sep 13, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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



    Post Edited By Moderator (mjp [DASP]) : 11/2/2007 10:13:36 PM GMT
     
  2. Mary Ann,

    If you web app is hosted on the Discountasp servers (which if I am not mistaken are in California, USA - PST) the you will get the date/time of the server. You will have to recalculate it for the timezone you would like.

    Hope that answers your question.

    Rookie
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page