Answers for "date format french js"

1

date format french js

const start = Date.now();
const date = new Date(start);
const formatted = date.toLocaleDateString("fr-FR")

setTimeout(() => {
	console.log(formatted);
}, 2000);
// output after two seconds: "02/09/2021"
Posted by: Guest on September-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language