score:0

<DatePicker
    defaultValue = {moment('2015/01/01', 'YYYY/MM/DD')}
    format = {'YYYY/MM/DD'}
/>

score:0

let yourCustomDate = moment('24/12/2019 09:15:00', "DD MM YYYY hh:mm:ss");


<DatePicker
    allowClear={false}
    placeholder="Select date"
    onChange={this.changeDate}
    value={yourCustomDate}
/>

score:1

import { DatePicker, Space } from 'antd';
import moment from 'moment';

const dateFormat = 'YYYY/MM/DD';

...

<DatePicker defaultValue={moment('2015/01/01', dateFormat)} />


Related Query

More Query from same tag