c# - Getting TimeZone from string containing DateTime -


I have a date time string "2014-10-09T07: 01: 39Z" . I want to get the time zone from this string.

"2014-10-09T07: 01: 39Z" means 10/9/2014 7:01 : 39 AM + 00: 00

"2014-10-09T07: 01: 39" Meaning 10/9/2014 7:01:39 AM +/- Local Timezone

  var dof = DateTime Offset Purse ("2014-10-09T07: 01: 39s"); Console.WriteLine (dof.Offset); // 00: 00: 00 dof = DateTime Offset Purse ("2014-10-09T07: 01: 39"); Console.WriteLine (dof.Offset); // XX: 00: 00  

Comments

Popular posts from this blog

mysql - How to enter php data into a html multiple select box -

java - Can't add JTree to JPanel of a JInternalFrame -

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -