How do I collect an end date when creating a Date field in code?
You just need to set the todate under the settings array, I believe the 2 options available are     

'todate' =&gt; 'optional',


and

'todate' =&gt; 'required',