Task 5 Program Code improvement

Improved the program code for task 5 so that it only takes 2 lines
instead of 8 to read/save date and time