Properly format date and moving time.