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

14 lines
257 B
Markdown

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