mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
3d3be18f57
GitOrigin-RevId: d659326723a90ac0789f4f7acc7f00aa9eaa63e2
21 lines
332 B
JavaScript
21 lines
332 B
JavaScript
import dateformat from 'dateformat'
|
|
|
|
function formatDateTime(date) {
|
|
if (!date) {
|
|
return null
|
|
}
|
|
return dateformat(date, 'mmmm dS, yyyy h:MM TT Z', true)
|
|
}
|
|
|
|
function formatDate(date) {
|
|
if (!date) {
|
|
return null
|
|
}
|
|
return dateformat(date, 'mmmm dS, yyyy', true)
|
|
}
|
|
|
|
export default {
|
|
formatDateTime,
|
|
formatDate,
|
|
}
|