date
DDataParser.date() validates a TheDate (proprietary format date${number}${"-" | "+"}), accepts Date, timestamps, or existing TheDate as input, and returns an immutable safe value across your services.
Interactive example
Parameters
errorMessage: custom message if the input cannot be converted toTheDate.checkers:checkerRefineto express your rules (ranges, intervals, etc.).coerce:trueto acceptDate, number, or ISO string then convert toTheDate. Defaults tofalse.
Return value
A DataParserDate with the usual API (parse, asyncParse, exec, asyncExec, addChecker, clone). parse returns DEither.success<TheDate> or DEither.error<DataParserError> containing the issues.
