Date Time Formatting Issue. RRS feed

  • Question

  • Hi,

    I have a encountered a strange behaviour of DateTime.Parse() function in .Net.It takes the System Date time format as a reference and the parses the string.
    For e.g.

    if we parse string "12.12.2012 12:03:93" and specify this format "dd/mm/yyyy HH:mm:ss"

    the result does not contain "/".

    Any generic rule of thumb to operate with Date Time in .Net.
    So that it is not dependent on System Date Time format.
    Also,how to consider other O.S like Windows 7,8.

    Monday, May 6, 2013 4:33 AM


All replies