Checkout calculates costs, generates order number, adds to history, removes from cart. Can now obtain dates in proper format