2
0
mirror of https://github.com/tusen-ai/naive-ui.git synced 2025-01-24 12:45:18 +08:00
naive-ui/demo/documentation/components/time/zhCN/format.demo.md

9 lines
284 B
Markdown
Raw Normal View History

2020-02-04 11:37:14 +08:00
# 格式化
格式化时间, 详尽文档请查看 <n-a href="https://date-fns.org/v2.6.0/docs/format">date-fns format</n-a>.
2020-02-04 11:37:14 +08:00
```html
<n-time :time="0" format="yyyy-MM-dd"/>
<br>
<n-time :time="0" format="yyyy-MM-dd hh:mm"/>
<br>
<n-time :time="0" format="yyyy-MM-dd hh:mm:ss"/>
```