"FFF"
If non-zero, the milliseconds in a date and time value.
More information: The "FFF" Custom Format Specifier.
2009-06-15T13:45:30.6170000 ->617
2009-06-15T13:45:30.0005000 ->(no output)
"FFFF"
If non-zero, the ten thousandths of a second in a date and time value.
More information: The "FFFF" Custom Format Specifier.
2009-06-15T13:45:30.5275000 ->5275
2009-06-15T13:45:30.0000500 ->(no output)
"FFFFF"
If non-zero, the hundred thousandths of a second in a date and time value.
More information: The "FFFFF" Custom Format Specifier.
2009-06-15T13:45:30.6175400 ->61754
2009-06-15T13:45:30.0000050 ->(no output)
"FFFFFF"
If non-zero, the millionths of a second in a date and time value.
More information: The "FFFFFF" Custom Format Specifier.
2009-06-15T13:45:30.6175420 ->617542
2009-06-15T13:45:30.0000005 ->(no output)
"FFFFFFF"
If non-zero, the ten millionths of a second in a date and time value.
More information: The "FFFFFFF" Custom Format Specifier.
2009-06-15T13:45:30.6175425 ->6175425
2009-06-15T13:45:30.0001150 ->000115
"g", "gg"
The period or era.
More information: The "g" or "gg" Custom Format Specifier.
2009-06-15T13:45:30.6170000 ->A.D.
"h"
The hour, using a 12-hour clock from 1 to 12.
More information: The "h" Custom Format Specifier.
2009-06-15T01:45:30 ->1
2009-06-15T13:45:30 ->1
"hh"
The hour, using a 12-hour clock from 01 to 12.
More information: The "hh" Custom Format Specifier.
2009-06-15T01:45:30 ->01
2009-06-15T13:45:30 ->01
"H"
The hour, using a 24-hour clock from 0 to 23.
More information: The "H" Custom Format Specifier.
2009-06-15T01:45:30 ->1
2009-06-15T13:45:30 ->13
"HH"
The hour, using a 24-hour clock from 00 to 23.
More information: The "HH" Custom Format Specifier.
2009-06-15T01:45:30 ->01
2009-06-15T13:45:30 ->13
"K"
Time zone information.
More information: The "K" Custom Format Specifier.
With DateTime values:
2009-06-15T13:45:30, Kind Unspecified ->
2009-06-15T13:45:30, Kind Utc ->Z
2009-06-15T13:45:30, Kind Local ->-07:00 (depends on local computer settings)
With DateTimeOffset values:
2009-06-15T01:45:30-07:00 –>-07:00
2009-06-15T08:45:30+00:00 –>+00:00
"m"
The minute, from 0 through 59.
More information: The "m" Custom Format Specifier.
2009-06-15T01:09:30 ->9
2009-06-15T13:29:30 ->29
"mm"
The minute, from 00 through 59.
More information: The "mm" Custom Format Specifier.
2009-06-15T01:09:30 ->09
2009-06-15T01:45:30 ->45
"M"
The month, from 1 through 12.
More information: The "M" Custom Format Specifier.
2009-06-15T13:45:30 ->6
"MM"
The month, from 01 through 12.
More information: The "MM" Custom Format Specifier.
2009-06-15T13:45:30 ->06
"MMM"
The abbreviated name of the month.
More information: The "MMM" Custom Format Specifier.
2009-06-15T13:45:30 ->Jun (en-US)
2009-06-15T13:45:30 ->juin (fr-FR)
2009-06-15T13:45:30 ->Jun (zu-ZA)
"MMMM"
The full name of the month.
More information: The "MMMM" Custom Format Specifier.
2009-06-15T13:45:30 ->June (en-US)
2009-06-15T13:45:30 ->juni (da-DK)
2009-06-15T13:45:30 ->uJuni (zu-ZA)
"s"
The second, from 0 through 59.
More information: The "s" Custom Format Specifier.
2009-06-15T13:45:09 ->9
"ss"
The second, from 00 through 59.
More information: The "ss" Custom Format Specifier.
2009-06-15T13:45:09 ->09
"t"
The first character of the AM/PM designator.
More information: The "t" Custom Format Specifier.
2009-06-15T13:45:30 ->P (en-US)
2009-06-15T13:45:30 -> (ja-JP)
2009-06-15T13:45:30 ->(fr-FR)
107