mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
f33c3ba4cb
GitOrigin-RevId: 03d8502bfe105574f8eb1ad65356a334edf44cd0
10 lines
194 B
TypeScript
10 lines
194 B
TypeScript
import moment from 'moment'
|
|
|
|
export function formatLocalDate(date: moment.MomentInput) {
|
|
if (date) {
|
|
return moment(date).format('D MMM YYYY, HH:mm:ss Z')
|
|
} else {
|
|
return 'N/A'
|
|
}
|
|
}
|