I have a moment date object, and want to get the selected day number (0-6) or (1-7).
I tried this, but it doesn\'t work
var aaa = moment(date).day();
From the docs page, notice they have these helpful headers
http://momentjs.com/docs/#/get-set/weekday/ (I didn't see them at first)
With header sections for:
.
var now = moment(); var day = now.day(); var date = now.date(); // Number