Date problem....please help...

Discussion in 'Visual Studio' started by maryann, Sep 14, 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
     
  2. Bruce

    Bruce DiscountASP.NET Staff

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