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 - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -