Property DateTimeFormatString
DateTimeFormatString
Gets or sets a date and time format string to represent
DateTime values in JSON.
Declaration
public string DateTimeFormatString { get; set; }
Property Value
Type | Description |
---|---|
String | Date and time format string. The default is DefaultDateTimeFormatString. |
Remarks
This option specifies the date and time format string to use to
represent DateTime values in JSON. It is passed as
an argument to ToString(String) method.
The default is The default is
DefaultDateTimeFormatString. If set to
null
,
the general date and time format specifier 'G' will be used as if
calling ToString(). If
DateTimeAsMillis is true
, this option has no
effect.