Answers for "c# datetime iso 8601 format"

C#
3

iso date format c#

var newTime = theTime.UtcNow.ToString("o");
// returns "2017-06-26T00:00:00.0000000Z"

var newTime2 = theTime.Date.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.sssZ");
// returns "2017-06-26T00:00:00.00Z"
Posted by: Guest on July-15-2020
1

c# datetime iso 8601 format

var newTime = theTime.Date.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ");
// returns "2017-06-26T00:00:00.000Z"
Posted by: Guest on April-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language