Fix datepicker

I need this in my validation branch to test serverside validations.