Skip to content

SudoSOS Back-end API / helpers / isDate

Function: isDate() ​

ts
function isDate(date, canBeUndefined?): boolean;

Returns whether a given date string is actually a date

Parameters ​

ParameterTypeDescription
dateanystring - The date string
canBeUndefined?booleanboolean - Whether number is also allowed to be undefined

Returns ​

boolean