mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 17:51:51 +02:00
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'
|
|
}
|
|
}
|