Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 504 Bytes

DateTime-Format-Pipe.md

File metadata and controls

34 lines (21 loc) · 504 Bytes

{%{

DateTime Format Pipes

You can format date by Date pipe of angular.

Example

<span> {{today | date 'dd/mm/yy'}}</span>

ShortDate, ShortTime and ShortDateTime format data like angular's data pipe but easier. Also the pipes get format from config service by culture.

ShortDate Pipe

<span> {{today | shortDate }}</span>

ShortTime Pipe

<span> {{today | shortTime }}</span>

ShortDateTime Pipe

<span> {{today | shortDateTime }}</span>

}%}