Unable to get conditions working for the date picker field in IE 8