import { DatePicker as AntdDatePicker, DatePickerProps as AntdDatePickerProps, } from 'antd'; import moment from 'moment'; export type DatePickerProps = { stringValue?: string; stringOnChange?: (value: string) => void; label?: string; } & AntdDatePickerProps; const dateFormat = ['DD/MM/YYYY', '']; const DatePicker = ({ stringValue, stringOnChange, value, onChange, className, ...props }: DatePickerProps) => { const _value = stringValue ? moment(stringValue) : value; return ( ); }; export default DatePicker;