8 lines
No EOL
206 B
JavaScript
8 lines
No EOL
206 B
JavaScript
export const dateFormat = (d) => {
|
|
const formatter = new Intl.DateTimeFormat('en-US', {
|
|
year: 'numeric',
|
|
month: 'long',
|
|
day: 'numeric',
|
|
});
|
|
return formatter.format(d);
|
|
}; |