fix date formatting in form.js
fix some date formater bugs