Merge date and time inputs