Is this the standard DateTime format?

I have not seen this date and time format:

2010-08-19T16: 09: 07.08

The closest one found in msdn is represented by a standard format string "o", but this is not exactly the same.

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

Thank,

Phil

+3
source share
4 answers

This is the international standard ISO 8601 . I believe that it is not intended for human reading, but is intended to interact with the machine.

In .NET, you can format DateTimeobjects in this format as follows:

myDateTime.ToString("s")

. DateTime MSDN.

+15

ISO 8601.

  • , (, ) ( , , , , ).

  • ISO 8601 . ( " ISO 8601" ) . ! - , , , 10 . , ISO 8601 . , "ISO 8601" , , , "ISO 8601" , , , . , . 8601, . "ISO 8601" , , , . NOTE-Datetime or the formats described in XMLSchema (even if you are not using XML schemas) can be useful. Read more about web date and time formats here

+2
source

Source: https://habr.com/ru/post/1760700/


All Articles