moment().format('YYYY-MM-DD HH:mm:ss')
'2016-07-05 15:43:38'
moment().isBetween('2016-07-05 12:00:00', '2010-07-05 20:00:00'); does not work?
I think you need to pass a date to the moment()
.
moment('2010-10-20').isBetween('2010-10-19', '2010-10-25'); // true
Check out:
http://momentjs.com/docs/#/query/is-between/