I assume this should be pretty simple, but could not get it :(.
In this format Z is time zone.
T is long time pattern
How could I get a date in this format except by using
DateTime dt = DateTime.Now;
Console.WriteLine(dt.ToString("yyyy-MM-ddTHH:mm:ssZ"));
in C#