mirror of
https://github.com/standardnotes/app
synced 2026-07-31 05:16:12 -04:00
14 lines
342 B
TypeScript
14 lines
342 B
TypeScript
import { dateToLocalizedString } from '@standardnotes/snjs/'
|
|
|
|
export const formatLastSyncDate = (lastUpdatedDate: Date) => {
|
|
return dateToLocalizedString(lastUpdatedDate)
|
|
}
|
|
|
|
export const formatDateForContextMenu = (date: Date | undefined) => {
|
|
if (!date) {
|
|
return
|
|
}
|
|
|
|
return `${date.toDateString()} ${date.toLocaleTimeString()}`
|
|
}
|