[examples/turing] - rename it to turing
This commit is contained in:
8
examples/turing/lib/formatDate.js
Normal file
8
examples/turing/lib/formatDate.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export function formatDate(dateString) {
|
||||
return new Date(`${dateString}T00:00:00Z`).toLocaleDateString('en-US', {
|
||||
day: 'numeric',
|
||||
month: 'long',
|
||||
year: 'numeric',
|
||||
timeZone: 'UTC',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user