I'm developing a C# library with .NET Framework 4.5.
I need to generate this date string: 2015-12-01T07:54:20Z
But now I'm generating this date string: 2015-12-01 07:54:20Z
(the same that previous one but with out the T
).
To generate that date I'm using this code: DateTime.Now.ToUniversalTime().ToString("u")
How can I generate the other date string with the T?