Cant using datetime in database query

Hi @Luca2

In order to use the DateTime variable in a query, you will need to convert it to a string in the appropriate format for the database you are querying. The format of the string will depend on the database you are using and the data type of the column you are querying.