Added month select component.
This commit is contained in:
1 parent
6ef1f2e9f9
commit
c548267d91
16 files changed
+169
-71
No files matched your search
+1
-1
@@ -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