Use Angular inline DatePipe:
{{ whatTime | async | date:'d/M/yy hh:mm:ss' }}
This translates Thu Sep 15 2016 18:15:17 GMT+0200 (Central Europe Daylight Time)into your desired Template 15/9/16 06:15:17.
Read more about Angular DatePipeand its formats here , and you can learn more about Angular pipes in general here .
source
share