Date Picker using ant design

ยท

1 min read

import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'

import { DatePicker } from 'antd';
import dayjs from 'dayjs';
import customParseFormat from 'dayjs/plugin/customParseFormat';

dayjs.extend(customParseFormat);

const { RangePicker } = DatePicker;
const dateFormat = 'DD/MM/YYYY';

function App() {

  return (
    <>
      <RangePicker
        format={dateFormat}
        size='large'
      />
    </>
  )
}

export default App
ย