mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-24 23:55:02 +00:00
Format date in dd-mm-yyyy
This commit is contained in:
@@ -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(() => {
|
||||||
|
Reference in New Issue
Block a user