parse the due date in the rails controller instead