ng2-datepicker icon indicating copy to clipboard operation
ng2-datepicker copied to clipboard

How to format the output from the date picker

Open naveencgr opened this issue 6 years ago • 2 comments

I added the date picker in my form and trying to access the model values using this.model.values which is giving with the time zone as 2018-06-13T04:00:00.000Z. I need the value of the date as MM/DD/YYYY as set in the options. I set the date picker options as below and using ^2.3.1 version datePickerOptions : DatepickerOptions = { minYear: 2012, maxYear: 2050, displayFormat: 'MM/DD/YYYY', barTitleFormat: 'MMMM YYYY', firstCalendarDay: 0 // 0 - Sunday, 1 - Monday };

naveencgr avatar Jun 11 '18 20:06 naveencgr

Same issue for me. It should take a value with set display formating

troncomputers avatar Aug 23 '18 10:08 troncomputers

@naveencgr @troncomputers any solution for this by now ?

Gururaj26 avatar Apr 02 '19 09:04 Gururaj26