edited date format to match cart and linked to already existing js to control dates