Separate time into date and time