c# - Dateime Parse method adding one day to input date -


I am reading a date from an XML file and parsing it in the format I want to add this date to one day And I am not able to understand it.

Input: 2014-02-12T15: 21: 19-08: 00 Output: 13 February 2014 01:21

My code is for parsing date:

  string date = datetime. Mercury (line ["count"]. Tostrings ()). Toasting ("DD MMM yyyy HH: mm");   

Any help would be greatly appreciated.

The reason is that time zone information should be used to adjust time in your local time zone. Used to be.

If you remove the suffix "-08: 00", then you will find that time will not be adjusted. However, you have to know that the timezone information is important before ignoring it!

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -