Negative impact since changing date field type in databases

In the past, the databases had a field type that included date and time, at first it was ineffective as there was no option to set a time, later it was updated with an option to choose, now this field type has disappeared, and in its place is split into two fields, a date field type, and a time field type.

The point is that now there is no way to use a filter in the .GE .LE query, for example to check whether the item is larger or smaller than the current day.

The only solution I find now is to save the date in the database in the ‘number’ variable - new Date().getTime();

I’d love to find out I’m wrong.