You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design/components/datepicker/demo/formatter.md

16 lines
295 B
Markdown

10 years ago
# 日期格式
- order: 1
使用 `format` 属性自定义您需要的日期定义格式yyyy/MM/dd
10 years ago
---
````jsx
var Datepicker = antd.datepicker;
React.render(
<Datepicker value="2015/01/01" format="yyyy/MM/dd" />
10 years ago
, document.getElementById('components-datepicker-demo-formatter'));
````