A
A
artmirarmi2018-08-18 14:12:26
JavaScript
artmirarmi, 2018-08-18 14:12:26

How can I check if the date is within the specified range?

Hello. Let's say there are two dates in this form: Sat Aug 18 2018 00:00:00 GMT+0300 and Mon Aug 20 2018 00:00:00 GMT+0300 . How can I check with javascript that the date Sun Aug 19 2018 00:00:00 GMT+0300 is within the range of the two dates above?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2018-08-18
@artmirarmi

I don’t remember exactly whether it is possible to compare dates, or rather I don’t remember how. But you can definitely parse the date into components and calculate the amount. And compare it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question