mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
* Reapply "[web] Remove SubscriptionFormatters, format subscription dates in the…" This reverts commit 2939e71e5b919529cbb8a602916d5f597d117792. * Fixup after rename conflict: `nextPaymentDueDate`->`periodEnd` GitOrigin-RevId: c024a3a2cd08c1f8f9d4c99f9ba6f018d334439e
16 lines
387 B
TypeScript
16 lines
387 B
TypeScript
import { formatTime } from '@/features/utils/format-date'
|
|
|
|
export function formatPaymentDate(date: string | null | undefined) {
|
|
if (!date) {
|
|
return null
|
|
}
|
|
return formatTime(date, 'MMMM Do, YYYY', true)
|
|
}
|
|
|
|
export function formatPaymentDateTime(date: string | null | undefined) {
|
|
if (!date) {
|
|
return null
|
|
}
|
|
return formatTime(date, 'MMMM Do, YYYY h:mm A [UTC]', true)
|
|
}
|