c# datetime iso 8601 format
var newTime = theTime.Date.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ");
// returns "2017-06-26T00:00:00.000Z"
c# datetime iso 8601 format
var newTime = theTime.Date.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ");
// returns "2017-06-26T00:00:00.000Z"
ISO 8601
YYYY-MM-DD'T'hh:mm:ss'Z'
Z is the ofset from the UTC timezone
it can be replaced with "(+/-)hh:mm"
if ofset is not specified, character 'Z' is in place instead
2021-01-01T01:01:01+01:00
2021-02-02T02:02:42.069-02:00
2021-03-03T03:03:03.3Z
20210404T040404Z
iso-8601
echo date('c'); //2021-02-03T21:42:51-08:00
echo date(DATE_ISO8601); //2021-02-03T21:42:51-0800
$datetime = new DateTime();
echo $datetime->format(DateTime::ATOM); //2021-02-03T21:42:51-08:00
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us