Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this a standard DateTime format?

I haven't seen this datetime format before:

2010-08-19T16:09:07.08

The nearest I have found in the msdn is represented by the "o" standard format string, but it's not quite the same.

So what is this format? If it's standard can I reproduce it with a standard format string?

Thanks,

Phil

like image 450
Phil Gan Avatar asked Nov 30 '22 05:11

Phil Gan


1 Answers

This is the ISO 8601 international standard format. I believe that it is not designed for human readability but intended for machine interoperability.

In .NET, you can format DateTime objects in this format like this:

myDateTime.ToString("s")

For more date formatting strings, see Standard DateTime Format Strings on MSDN.

like image 76
Timwi Avatar answered Dec 15 '22 18:12

Timwi