about datetime format RRS feed

  • Question

  • User-1071710571 posted

    hello to everyone,

    I am using access database 2002-2003 and asp.net 3.5 with c#.net.In that i am having one table namely schoolmaster.

    In schoolmaster i have field DOC having datatype as text.

    While saving date in this table, i am doing as follows in my codebehind:

     string DOC = DateTime.Now.ToString("dd/MM/yyyy hh:mm:ss tt"); (c#.net)

    On localhost it is saving the correct date with correct time, when uploaded on the server, it is saving in different format as 30/21/2011 01:nn a21p21. i cannot figure out what format is this? And there does not occur any exception while saving the data. then wy this date is saved like this. server's location is USA.

    Help me out.

    thanks in advance.

    Monday, September 5, 2011 9:32 AM


All replies