Have used currentDate = new Date();
in my typescript file
and tried to render by using {{currentDate}}
but it shows full format like Sun Aug 06 2017 15:36:11 GMT+0530 (IST)
.
I took reference from AngularDatePipe , then i render {{currentDate | date}}
now it shows like Aug 6, 2017
. But what i want is just day with starting 3 char only like Sun , Sat .. and so is there any way to retrieve it from this format Sun Aug 06 2017 15:36:11 GMT+0530 (IST)
.