create formatted strings for dates before inserting