added exteded version conditions to datepicker