formatFullDate
Formats a Luxon DateTime with weekday, day, and month, but no year. This works well for near-term dates where the year is obvious from context.
Importing
ts
import { formatFullDate } from '@almighty-shogun/utils';Usage
ts
import { DateTime } from 'luxon';
import { formatFullDate } from '@almighty-shogun/utils';
const label = formatFullDate(DateTime.fromISO('2026-05-20'), 'en');Parameters
date: DateTime
Date to format.
locale?: Undefinable<string>
Locale override.
Returns
A localized date label containing weekday, day, and month. The year is intentionally omitted.Uses
Type signature
ts
declare function formatFullDate(
date: DateTime,
locale?: Undefinable<string>
): string;