Preventing from entering invalid date

Datepicker added through jQuery-ui-1.9.2.  I tested it just on google-chrome on Ubuntu 12.04 and Safari.  It seems working fine.