Cleaned up the code for displaying the time and date.