docs: add function docs

This commit is contained in:
Methapon2001 2024-12-18 08:58:29 +07:00
parent cd27514c33
commit a7158a7511

View file

@ -151,6 +151,9 @@ export function disabledAfterToday(date: Date) {
return date > today;
}
/**
* This function accept date format from dd/MMM/YYYY and convert into date object
*/
export function parseAndFormatDate(value: string | number | undefined) {
if (!value) return;