ng2-datepicker
ng2-datepicker copied to clipboard
How to format the output from the date picker
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 };
Same issue for me. It should take a value with set display formating
@naveencgr @troncomputers any solution for this by now ?