AngularJS Date Filter function Example: Format Date and Time in AngularJS


dd/MM/yyyy format
{{CurrentDate | date:'dd/MM/yyyy'}}

dd, MMMM yyyy format
{{CurrentDate | date:'dd, MMMM yyyy'}}

24 Hour time
{{CurrentDate | date:'HH:mm:ss'}}

12 Hour time
{{CurrentDate | date:'hh:mm:ss a'}}

© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.