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
Post a Comment