Home > Net >  I need to display the datezone according to country in Angular
I need to display the datezone according to country in Angular

Time:11-20

Present i am displaying the dateZone of IST and i need to display the datezone according to their place.

app.component.html:

<td>{{scan.createdOn   'Z' | date :'medium'}}</td>

CodePudding user response:

You can use a localized date pipe for that.

{{ value_expression | date [ : format [ : timezone [ : locale ] ] ] }}

Please check the i18n guide of the official Angular documentation here for more info: https://angular.io/guide/i18n-common-format-data-locale

  • Related