Setting an end date in a form