format dates and timestamps for batch insert values