System.Globalization Namespace DateTimeFormatInfo Class
Gets the format pattern for a sortable date and time value, which is associated with the 's' format character.
[ VB ]
public ReadOnly Property SortableDateTimePattern As String
[ C# ]
public string SortableDateTimePattern {get;}
[ C++ ]
public: __property String* get_SortableDateTimePattern ( );
[ JScript ]
function get SortableDateTimePattern ( ) : String;
The format pattern for a sortable date and time value, which is associated with the 's' format character.
The SortableDateTimePattern applies the same pattern for each of the available cultures, which is
yyyy'-'MM'-'dd'T'HH':'mm':'ss
and for the current date and time returns
2025-01-10T10:37:45
DateTimeFormatInfo Members UniversalSortableDateTimePattern