added a function that turns date and time into and integer so that they can be compared against one another