Fixed problem with getDay() vc. getDate()