But this creates two date fields. I am talking about a UI component that looks like this:
This allows you to select a range between two dates.
Technically it is the same thing, but UI/UX wise, I think it’s a better user experience.
Also having something like the shortcuts on the left (Last 7 days) is a nice touch and makes it easier for users: