fix: filter custom date select toggle (#4244)
This commit is contained in:
parent
5d8c5b22e8
commit
beff8536c9
12 changed files with 79 additions and 10 deletions
|
|
@ -224,7 +224,7 @@ export const getDate = (date: string | Date | undefined | null): Date | undefine
|
|||
return undefined;
|
||||
}
|
||||
};
|
||||
export const isDate = (date: string) => {
|
||||
export const isInDateFormat = (date: string) => {
|
||||
const datePattern = /^\d{4}-\d{2}-\d{2}$/;
|
||||
return datePattern.test(date);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue