My console log is giving me an unexpected output.
var bool = (moment(\"2017-04-08 23:00:00\").isBefore(moment(\"2017-04-09 01:00:00\", \'day\'))); console.lo
The moment(...) argument does not accept the 'day' parameter.
moment(...)
Instead, you should be calling isBefore(...) with the day parameter like so:
isBefore(...)
moment(...).isBefore(moment(...), 'day'));
More info can be found at the moment docs here.