This commit is contained in:
parent
1333195ebe
commit
07266f70a7
1 changed files with 29 additions and 37 deletions
|
|
@ -24,14 +24,6 @@ const days = [
|
||||||
]
|
]
|
||||||
|
|
||||||
const convertDate = (isoStamp) => {
|
const convertDate = (isoStamp) => {
|
||||||
//const unixSeconds = new Date(isoStamp)
|
|
||||||
//// const weekday = days[unixSeconds.getDay()]
|
|
||||||
//const day = unixSeconds.getDate()
|
|
||||||
//const month = months[unixSeconds.getMonth()]
|
|
||||||
//const year = unixSeconds.getFullYear()
|
|
||||||
//return `${day} ${month} ${year}`
|
|
||||||
|
|
||||||
console.log(isoStamp)
|
|
||||||
const date = new Date(isoStamp)
|
const date = new Date(isoStamp)
|
||||||
const year = date.getFullYear()
|
const year = date.getFullYear()
|
||||||
const month = String(date.getMonth() + 1).padStart(2, "0")
|
const month = String(date.getMonth() + 1).padStart(2, "0")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue