Method DateTime
| Improve this Doc View SourceDateTime(Nullable<DateTime>)
Converts a DateTime value into JSON value.
Declaration
public static JsonValue DateTime(DateTime? x)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | x | The value. |
Returns
Type | Description |
---|---|
JsonValue | The result JSON value. |
DateTime(Nullable<DateTime>, String)
Converts a char value into JSON value, with specified format.
Declaration
public static JsonValue DateTime(DateTime? x, string format)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | x | The value. |
System.String | format | The format. |
Returns
Type | Description |
---|---|
JsonValue | The result JSON value. |