encode recurring dates and comment out date function