Added month select component.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user