Menu
How would i go about finding the first sunday of a month?
I need it to be something like:
if (day==sunday && sunday==1’th of the month) sunday=1
I have:
var w = new Date();
var wd = u.getDay();
if (wd==0) do whatever // but need the first sunday of the month to so something else
need something like counting sundays:
var sd = ??? // sd = sunday
if (wd==0 && (sunday==1’th of month)) do something
if (wd==0 && (sunday!=1’th of month)) do something else
please help