date - How to do a greater than or equal to with moments (moment.js) in javascript? -


basically, want mymoment >= yourmoment. there no mymoment.issameorafter , writing out combining issame , .isafter bit lengthy.

what's alternative? convert moment js date , use >= compare?

you can use issameorafter method in momentjs:

moment1.issameorafter(moment2); 

Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -