Can you please provide plunker example to set set mindate,max date and default UTC date and time using data binding.
UTC date:
dateObj: any = new Date();
todaysDate: string = new Date(this.dateObj.getUTCFullYear(), this.dateObj.getUTCMonth(), this.dateObj.getUTCDate(), this.dateObj.getUTCHours(), this.dateObj.getUTCMinutes()).toUTCString();
date2 = new Date(this.todaysDate);
This portion of code works in plunker which sets date to UTC but when i use same in my project its setting date to 11-08-0017 but time is setting correct.
Can you please provide plunker example to set set mindate,max date and default UTC date and time using data binding.
UTC date:
dateObj: any = new Date(); todaysDate: string = new Date(this.dateObj.getUTCFullYear(), this.dateObj.getUTCMonth(), this.dateObj.getUTCDate(), this.dateObj.getUTCHours(), this.dateObj.getUTCMinutes()).toUTCString(); date2 = new Date(this.todaysDate);
This portion of code works in plunker which sets date to UTC but when i use same in my project its setting date to 11-08-0017 but time is setting correct.