Z
Z
ZhGhost2019-03-08 20:27:01
JavaScript
ZhGhost, 2019-03-08 20:27:01

Working with Moment js, how to compare two dates?

How to implement comparison in the Moment library? For example: that date A is greater than or earlier than date B.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-03-08
@ZhGhost

Everything is written in the documentation: isBefore , isAfter , ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question