mirror of https://github.com/abpframework/abp.git
1 changed files with 29 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||||
|
# DateTime Format Pipes |
||||
|
|
||||
|
You can format date by Date pipe of angular. |
||||
|
|
||||
|
Example |
||||
|
|
||||
|
```html |
||||
|
<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 |
||||
|
|
||||
|
```html |
||||
|
<span> {{today | shortDatePipe }}</span> |
||||
|
``` |
||||
|
|
||||
|
# ShortTime Pipe |
||||
|
|
||||
|
```html |
||||
|
<span> {{today | shortTimePipe }}</span> |
||||
|
``` |
||||
|
|
||||
|
# ShortDateTime Pipe |
||||
|
|
||||
|
```html |
||||
|
<span> {{today | shortDateTimePipe }}</span> |
||||
|
``` |
||||
Loading…
Reference in new issue