mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-05 23:39:52 +00:00
Format date in dd-mm-yyyy
This commit is contained in:
parent
b74ab2fa0e
commit
af3d06e7d3
@ -72,7 +72,7 @@ const prepareContent = (content: string, maxLength = 100): string => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const formatDate = (datetime: DateTime): string => {
|
const formatDate = (datetime: DateTime): string => {
|
||||||
return new Date(datetime.toString()).toLocaleDateString()
|
return new Date(datetime.toString()).toLocaleDateString('fr-FR')
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user