How do I convert DateTime to yyyy-mm-ddT00:00:00.000Z format in C#?
Just pass the format "yyyy-MM-dd'T'HH:mm:ss.fffffff'Z'"
to ToString
string str = DateTime.Now.ToString("yyyy-MM-dd'T'HH:mm:ss.fffffff'Z'");
Just pass the format "yyyy-MM-dd'T'HH:mm:ss.fffffff'Z'"
to ToString
string str = DateTime.Now.ToString("yyyy-MM-dd'T'HH:mm:ss.fffffff'Z'");