Added month select component.

This commit is contained in:
Mike Cao 2023-08-16 10:50:28 -07:00
parent 6ef1f2e9f9
commit c548267d91
16 changed files with 169 additions and 71 deletions

View file

@ -249,7 +249,7 @@ export const customFormats = {
},
};
export function dateFormat(date, str, locale = 'en-US') {
export function formatDate(date, str, locale = 'en-US') {
return format(
typeof date === 'string' ? new Date(date) : date,
customFormats?.[locale]?.[str] || str,