70
rated 0 times
[
76]
[
6]
/ answers: 1 / hits: 22973
/ 8 Years ago, fri, january 13, 2017, 12:00:00
Well, I want to check if a day of date is Monday like:
var myDate = new Date();
moment(myDate, 'DD-MM-YYYY').dayIs('monday')
In my country the first day of week is Monday, so, really I want check if the input date is begin of week.
I try using moment(myDate, 'DD-MM-YYYY').startOf('isoweek')
but, this don't work for me.
More From » momentjs