Truncate datetime.