Converts value into Date or returns current date when conversion is not possible.
the value to convert.
Date value or current date when conversion is not supported.
Converts value into Date or returns default when conversion is not possible.
the value to convert.
the default value.
Date value or default when conversion is not supported.
Converts value into Date or returns null when conversion is not possible.
the value to convert.
Date value or null when conversion is not supported.
Generated using TypeDoc
Converts arbitrary values into Date values using extended conversion rules:
Example
let value1 = DateTimeConverter.toNullableDateTime("ABC"); // Result: null let value2 = DateTimeConverter.toNullableDateTime("2018-01-01T11:30:00.0"); // Result: Date(2018,0,1,11,30) let value3 = DateTimeConverter.toNullableDateTime(123); // Result: Date(123)