tryParse static method
Constructs a new DateTime instance based on string
.
Works like parse except that this function returns null
where parse would throw a FormatException.
Implementation
static JDate? tryParse(String string) {
try {
return parse(string);
} on FormatException {
return null;
}
}