Adding functionality to get day of week, date. (Bug in my if-else)