I have a string as follows in my .ts file.
const date = "5/03/2018";
I want to convert to the date type which is default date type returned by angular Date class.
Tue Apr 03 2018 20:20:12 GMT+0530 (India Standard Time)
Now I have to convert this string type date to default angular date type.Any help? I have tried the following.
const date1 = new Date("5/03/2018");
but it is not working i am not getting the required format. this is stackblitz link any suggestions would be helpful. https://stackblitz.com/edit/angular-gdwku3