primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Dateformat issue in Angular2

Open nagaphanee opened this issue 9 years ago • 4 comments

As i was using the primeng calendar it is showing the following error while click on the calendar compoenent in the data table.

Calendar.html:42 ERROR TypeError: this.value.getDate is not a function at Calendar.webpackJsonp.../../../../primeng/components/calendar/calendar.js.Calendar.isSelected (calendar.js:336) at Object.eval [as updateDirectives] (Calendar.html:42) at Object.debugUpdateDirectives [as updateDirectives] (core.es5.js:13135) at checkAndUpdateView (core.es5.js:12317) at callViewAction (core.es5.js:12680) at execEmbeddedViewsAction (core.es5.js:12638) at checkAndUpdateView (core.es5.js:12318) at callViewAction (core.es5.js:12680) at execEmbeddedViewsAction (core.es5.js:12638) at checkAndUpdateView (core.es5.js:12318)

Please help us..

THanks Phaneendra

nagaphanee avatar Jul 11 '17 11:07 nagaphanee

@nagaphanee Could you please share your related code blocks via http://plnkr.co/edit/jVUv1euMIHMRmhe5bUEF?p=preview

SefaMuratcanKatirci avatar Jul 12 '17 08:07 SefaMuratcanKatirci

Declare the date with a type: public myDateObject: Date;

guntram avatar Jul 28 '17 08:07 guntram

Duplicate of 3351

cagataycivici avatar Aug 23 '17 07:08 cagataycivici

Value should be a Date.

cagataycivici avatar Aug 23 '17 07:08 cagataycivici