I am creating a pipeline from the SQL database to storage in the Azure data factory.
I am struggling to identify how to search data between the two dates with this format: yyyy-MM-ddTHH:mm:ssZ
I created a variable for the date called: date

Now upon searching query with below codes:
@concat('SELECT * FROM dbo.Task_History
WHERE history_timestamp BETWEEN ''2015-01-01T01:00:00Z'' AND CONVERT(datetime2, ''' , variables('date') , ''', 127)')
It gives an error stating:
Conversion failed when converting date and/or time from character string.

Below is the target column where to search the target data


variables('date')here?