moment get day in string code example
Example 1: moment get weekday name
var m = moment().day(); // gives 4 for thursday, then you can do a switch
Example 2: moment get month day
//The correct function to use is .date():
date.date() === 25;
var m = moment().day(); // gives 4 for thursday, then you can do a switch
//The correct function to use is .date():
date.date() === 25;