function getMotherDay(y) {
if (typeof y === 'undefined') {
var y = new Date().getFullYear();
}
var dMay01 = new Date(y + '-05-01');
var wIndex = dMay01.getDay();// 0-Sunday, 6-Saturday
if (wIndex != 0) {
dFirstSunday = new Date();
dFirstSunday.setTime(dMay01.getTime() + 24*3600*(7-wIndex)*1000);
} else {
dFirstSunday = dMay01;
}
dMomDay = new Date();
dMomDay.setTime(dFirstSunday.getTime() + 7*24*3600*1000);
return dMomDay;
}
Mother's Day