Azure: Compare dates in Data factory
You can use the ticks
function to convert it to integer.
Logic Apps function reference for Ticks
The ADF UI may show a warning about it not being a recognized function, but ADF is actually using logic app expressions so it will succeed if you debug or trigger the pipeline.