which is being used for editing records fetched via an API. In this there are 2 fields which date fields. The data coming from the API is in "2021-07-30T20:34:40.545Z" where as the input field is shows dd-mm-yyyy with calendar icon. All other text fields are showing but the date is not showing.
I have tried the following
<div className='col text-left'>
    <label htmlFor='RegistrationDate' className='text-left'>
            Registration Date
    </label>
    <input
        type='date'
        name='RegistrationDate'
        className='form-control'
        value={new Date(RegistrationDate).toLocaleDateString('en-GB')}
        onChange={handleChange}
    />
</div>
 
     
    