Monday, September 21, 2015

Get the milliseconds when casting DateTime.Now to a string in C#!

string foo = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");

No comments:

Post a Comment