local datepicker used.
Some errors fixed.