dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Dec 6, 2018

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Format a Date in Angular

To format a date in an Angular template, use the date pipe. For example, the following code formats the date to short date format by default.

{{ dateObject | date:' shortDate'' }}

would result in 9/27/2018.

Srinath MS
 
Thanks for your registration, follow us on our social networks to keep up-to-date