Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
Datetime to utc format
max pleaner
Programming language:
Whatever
2021-07-16 15:30:12
0
Q:
Datetime to utc format
Timeless
Code:
Whatever
2021-08-10 11:25:05
string foo = yourDateTime.ToUniversalTime() .ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fff'Z'");
0
Tags
time
form
Related
time format moment
utc full form in time
=String.Format("{0:yyyy-MM-dd HH:mm} GMT", DateTime.UtcNow)
convert moment date to utc format moment
New to Communities?
Join the community