replace javascript getDay by getDate