mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-27 10:34:26 +08:00
753c01ae18
fix antd.notification
16 lines
324 B
Markdown
16 lines
324 B
Markdown
# 日期格式
|
|
|
|
- order: 1
|
|
|
|
使用 `format` 属性,可以自定义你需要的日期显示格式,如 `yyyy/MM/dd`。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Datepicker } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<Datepicker defaultValue="2015/01/01" format="yyyy/MM/dd" />
|
|
, document.getElementById('components-datepicker-demo-formatter'));
|
|
````
|