Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. DateString["ISODateTime"]
  2. (* "2017-04-28T11:45:14" *)
  3.  
  4. DateObject["2017-04-28T11:45:14"]
  5. (* DateObject[{2017, 4, 28, 11, 45, 14}, "Instant", "Gregorian", -4.] *)
  6.  
  7. isoDateString = "2017-04-28T01:50:52.000Z";
  8.  
  9. DateObject[isoDateString]
  10. (* DateObject[{2017, 4, 28, 1, 50, 52.}, "Instant", "Gregorian", -4.] *)
  11.  
  12. isoDateString = "2017-04-28T01:50:52.000Z";
  13.  
  14. TimeZoneConvert @ Block[{$TimeZone = 0}, DateObject @ isoDateString]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement