Answer the question
In order to leave comments, you need to log in
How to compare two dates in vuejs?
Good afternoon!
Tell me, is it really possible to compare dates if:
1. in data() {...} while outputting this:
isTodayDate: new Date().toISOString().slice(0, 10)
returns the format 2020-03-03
All that I could ...
2. in JSON'e, the date format is String
list: [
{
...,
...,
dateend: "31.05.2018"
...,
},
{
...,
...,
dateend: "03.04.2021"
...,
},
{
...,
...,
dateend: "31.03.2018"
...,
},
{
...,
...,
dateend: "31.03.2018"
...,
}
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question