I need to do a check between two dates, I need to check if the date, time and minutes of a field is greater than or equal to the current date, time and minutes, I am using
SELECT * FROM info WHERE strfTime ('%s', dataFinal ) >= strfTime('%s', 'now');
If this condition is true, the data goes to datagridview_2
otherwise it remains in datagridview_1
.
In short:
The datagridview_2
will only receive information if the current date is greater than or equal to the date of the "end data" column. This data Final
, the user you specify in the field.