delphirtl • Docs
delphirtl / TryStrToDate
TryStrToDate(
S): [boolean,Date|undefined]
Parses the given string as a date, drops any time given
const [success, date] = TryStrToDate(SomeStr);
if (success) {
// ...date is valid!
}
• S: string
[boolean, Date | undefined]