fixing date parsing when value is entered in input box
updating parseDate parameters when checking for inputed date
adding toString methiod to parseDate function becuase obj will always no be equal to 'Invalid Date'
Merge pull request #335 from vernak2539/datepicker_invalid_input_fix

Fixing datepicker invalid input problem when date is entered manually