date formate issue in angular material . getting date less than one number.
resolved using
let sDate=this.Date_Prepared_Start;
let eDate=this.Date_Prepared_End;
sDate = new Date(Date.UTC(sDate.getFullYear(), sDate.getMonth(), sDate.getDate()));
eDate = new Date(Date.UTC(eDate.getFullYear(), eDate.getMonth(), eDate.getDate()));
No comments:
Post a Comment