fix: feed dates

This commit is contained in:
Cory Dransfeldt 2024-02-26 14:50:29 -08:00
parent 7b20663d24
commit b78f17bad0
No known key found for this signature in database
5 changed files with 6 additions and 6 deletions

View file

@ -70,7 +70,7 @@ export default {
})
.split(',')[0]
},
isoDateOnly: (date) => {
isoDateOnly: (date, separator) => {
let d = new Date(date)
let month = '' + (d.getMonth() + 1)
let day = '' + d.getDate()
@ -79,7 +79,7 @@ export default {
if (month.length < 2) month = '0' + month
if (day.length < 2) day = '0' + day
return [month, day, year].join('.')
return [year, month, day].join(separator)
},
stringToDate: (string) => {
if (!string) return