worked with date and time