google / google/closure-templates
Create a formatDateTime directive
Open
- Dominant language
- Java
- Stars
- 700
- Forks
- 199
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 26
Description
It'd be good to have a native directive to format a timestamp, delegating to standard date formatting implementations such as SimpleDateFormat (Java) and Date.toLocaleDateString (JS). A possible interface could be:
```
{timestampMillis|formatDateTime:locale,"short"}
```
Contributor guide
Assessment
This issue has not been assessed yet.