Is this function necessary? We should be able to store the dates given to us from the HTML.