Created method to return the day of the week according to the informations (Year, Month and Day).