docs: add function docs
This commit is contained in:
parent
cd27514c33
commit
a7158a7511
1 changed files with 3 additions and 0 deletions
|
|
@ -151,6 +151,9 @@ export function disabledAfterToday(date: Date) {
|
||||||
return date > today;
|
return date > today;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function accept date format from dd/MMM/YYYY and convert into date object
|
||||||
|
*/
|
||||||
export function parseAndFormatDate(value: string | number | undefined) {
|
export function parseAndFormatDate(value: string | number | undefined) {
|
||||||
if (!value) return;
|
if (!value) return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue