fix: feed dates
This commit is contained in:
parent
7b20663d24
commit
b78f17bad0
5 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Reference in a new issue