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

16 lines
295 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-06-02 17:20:02 +08:00
使用 `format` 属性自定义您需要的日期定义格式yyyy/MM/dd
2015-05-25 17:20:49 +08:00
---
````jsx
var Datepicker = antd.datepicker;
React.render(
2015-05-29 21:28:01 +08:00
<Datepicker value="2015/01/01" format="yyyy/MM/dd" />
2015-05-25 17:20:49 +08:00
, document.getElementById('components-datepicker-demo-formatter'));
````