Adding day of week code to date class: returns 0 for saturday, 1 for monday etc.