added time and date functionality. bug with the am/pm with time