mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 23:45:42 +00:00
Converted formatDate to TypeScript
This commit is contained in:
parent
d8157c148b
commit
d27ab9b431
@ -1,4 +1,4 @@
|
|||||||
export function formatDate(dateString) {
|
export function formatDate(dateString: string) {
|
||||||
return new Date(`${dateString}T00:00:00Z`).toLocaleDateString('en-IE', {
|
return new Date(`${dateString}T00:00:00Z`).toLocaleDateString('en-IE', {
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
month: 'long',
|
month: 'long',
|
Loading…
Reference in New Issue
Block a user