mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
505 B
30 lines
505 B
# 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>
|
|
```
|