[FIX]formats.js:onclick calendar view. convert a date object into string