ant-design/components/date-picker/demo/basic.md
Benjy Cui 4026221d45 deps: hello moment (#2887)
* deps: upgrade TimePicker

* deps: upgrade DatePicker

* deps: upgrade Calendar

* fix: moment should work with LocaleProvider

* feat: update API of TimePicker

* feat: update Calendar's APIs

* feat: update DatePicker's APIs

* doc: update demo

* revert: add dateString and timeString and so on

* feat: add Calendar[defaultValue]

* feat: add defaultPickerValue

* docs: update docs about date picker

* feat: set moment locale to zh-cn automatically
2016-09-09 13:55:21 +08:00

309 B

order title
0
zh-CN en-US
基本 Basic

zh-CN

最简单的用法。

en-US

The most basic usage.

import { DatePicker } from 'antd';

function onChange(date, dateString) {
  console.log(date, dateString);
}

ReactDOM.render(<DatePicker onChange={onChange} />, mountNode);