HomeGenie Forum

Automation Program Plugins and Wizard Scripting => APP Contributions => Topic started by: djatie on December 17, 2016, 02:07:01 AM

Title: Status Date time from json string
Post by: djatie on December 17, 2016, 02:07:01 AM
I have get json data date time with universal time like this

"UpdateTime": "2016-12-17T00:52:52.850543Z"

then i convert with c# to string and it show like this

12/17/2016 00:47:05

How to convert it with C# to local time? ex  GMT+9 or other.
Thnx for help
Title: Re: Status Date time from json string
Post by: nolio on December 18, 2016, 08:29:54 AM
Did you try that ?
https://msdn.microsoft.com/fr-fr/library/system.datetime.touniversaltime(v=vs.110).aspx