Method ToDateTime
ToDateTime()
Attempts to convert JSON value to DateTime with standard format and culture
Declaration
public DateTime ToDateTime()
Returns
Type | Description |
---|---|
DateTime | converted DateTime value |
ToDateTime(String, IFormatProvider)
Attempts to convert JSON value to DateTime with provided format
Declaration
public DateTime ToDateTime(string format, IFormatProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | DateTime format for conversion |
IFormatProvider | provider | Format control for DateTime |
Returns
Type | Description |
---|---|
DateTime | converted DateTime value |