Updated substitutes datepicker initialization.