8 lines
193 B
TypeScript
8 lines
193 B
TypeScript
/**
|
|
* Utility function to format a date into a human-readable string.
|
|
*/
|
|
export const dateFormatter = new Intl.DateTimeFormat('en', {
|
|
day: 'numeric',
|
|
month: 'long',
|
|
year: 'numeric',
|
|
})
|