ant-design/components/datepicker/demo/formatter.md

15 lines
290 B
Markdown
Raw Normal View History

2015-05-25 17:20:49 +08:00
# 日期格式
2015-05-27 20:41:16 +08:00
- order: 1
2015-05-28 14:53:23 +08:00
- description: 使用 `format` 属性自定义您需要的日期定义格式yyyy/MM/dd
2015-05-25 17:20:49 +08:00
---
````jsx
var Datepicker = antd.datepicker;
React.render(
<Datepicker format="yyyy/MM/dd" />
, document.getElementById('components-datepicker-demo-formatter'));
````