ant-design/components/date-picker/demo/formatter.md
2016-06-19 11:17:09 +08:00

423 B

order title
1
zh-CN en-US
日期格式 Date format

zh-CN

使用 format 属性,可以自定义你需要的日期显示格式,如 yyyy/MM/dd

en-US

By using format, you can customize the format(such as yyyy/MM/dd) the date is displayed in.

import { DatePicker } from 'antd';

ReactDOM.render(
  <DatePicker defaultValue="2015/01/01" format="yyyy/MM/dd" />
, mountNode);