comparing current time with input time in reactjs code example Example: convert datetime value to time only in reactjs <Datetime dateFormat="YYYY-MM" dateFormat={false} />