Returns a type filter function that returns the given value if value is of type string and, in ISO format,
represents a valid date, otherwise returns the given defaultValue (defaulting to the current timestamp).
Parameters
OptionaldefaultValue: string
The value to return if the given value is not of type string or is not a valid ISO date
string.
Returns a type filter function that returns the given
valueifvalueis of typestringand, in ISO format, represents a valid date, otherwise returns the givendefaultValue(defaulting to the current timestamp).