24 lines
519 B
JavaScript
24 lines
519 B
JavaScript
import { LOCALE } from '../_static/intl'
|
|
|
|
export const absoluteDateFormatter = new Intl.DateTimeFormat(LOCALE, {
|
|
year: 'numeric',
|
|
month: 'long',
|
|
day: 'numeric',
|
|
hour: '2-digit',
|
|
minute: '2-digit'
|
|
})
|
|
|
|
export const shortAbsoluteDateFormatter = new Intl.DateTimeFormat(LOCALE, {
|
|
year: 'numeric',
|
|
month: 'short',
|
|
day: 'numeric',
|
|
hour: '2-digit',
|
|
minute: '2-digit'
|
|
})
|
|
|
|
export const dayOnlyAbsoluteDateFormatter = new Intl.DateTimeFormat(LOCALE, {
|
|
year: 'numeric',
|
|
month: 'short',
|
|
day: 'numeric'
|
|
})
|