how to build the datetime query when change datetime format of locale?

已答复 how to build the datetime query when change datetime format of locale?

  • 2012年3月12日 5:39
     
     

    Hi,
    i have application in my user system. it has sqlqueries, and these are inbuilt to execute in another database server machine.
    My problem is when i am changing the DataTime format ie, English(india)(dd-mm-yyyy) to English(United staes)(mm-dd- yyyy) in my usermachine
    the queries are not executed correctly because the database machine is different datetime format.

    Ex:

    Usermachine-English(United state) --> mm-dd-yyyy
    Database servermachine-English(india)-->dd-mm-yyyy

    my query from User machine..

    UPDATE SiteMonthlyHitsTable SET [Last Accessed Date]='05-23-2012' WHERE [Page URL]='_vti_bin/owssvr.dll'

    this query mismatch with the database server datetime. so it has not executed. Pls help me how to built this qury to execute when
    support all the datetimeformat change.....

    Jack


    Nothing is impossible...

全部回复