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

15 lines
309 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(
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'));
````