|
|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
{%{
|
|
|
|
|
# DateTime Format Pipes
|
|
|
|
|
|
|
|
|
|
You can format date by Date pipe of angular.
|
|
|
|
|
@ -5,7 +6,7 @@ You can format date by Date pipe of angular.
|
|
|
|
|
Example
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<span>{%{{{today | date 'dd/mm/yy'}}}%}</span>
|
|
|
|
|
<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.
|
|
|
|
|
@ -13,17 +14,18 @@ ShortDate, ShortTime and ShortDateTime format data like angular's data pipe but
|
|
|
|
|
# ShortDate Pipe
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<span>{%{{{today | shortDatePipe }}}%}</span>
|
|
|
|
|
<span>{{today | shortDatePipe }}</span>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# ShortTime Pipe
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<span>{%{{{today | shortTimePipe }}}%}</span>
|
|
|
|
|
<span>{{today | shortTimePipe }}</span>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# ShortDateTime Pipe
|
|
|
|
|
|
|
|
|
|
```html
|
|
|
|
|
<span>{%{{{today | shortDateTimePipe }}}%}</span>
|
|
|
|
|
<span>{{today | shortDateTimePipe }}</span>
|
|
|
|
|
```
|
|
|
|
|
}%}
|
|
|
|
|
|