- Files
- Index
- Style
- Script
- README
- CDN Add
PLEASE WAIT...
const formatDate = function (date) {
const options = {
dateStyle: "full",
timeStyle: "medium",
}
if (typeof date === "string") {
date = new Date(date)
}
return date.toLocaleString("en-EN", options)
}