<input type="date" onChange={(e)=>setDate(e.target.value)}/>
<input type="time"onChange={(e)=>setDate(e.target.value)} />
if the date is after today and time is after current time i want to show validation that “please select precious time” .
I want the validation on time and date.