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
Post a Comment