Answers for "c# convert datetime to iso 8601"

C#
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
0

how to convert date to Complete ISO-8601 date in c#

string isoFormatDateString = dateTimeObject.ToUniversalTime().ToString("s") + "Z";
Posted by: Guest on February-21-2021

Code answers related to "c# convert datetime to iso 8601"

C# Answers by Framework

Browse Popular Code Answers by Language