Hi @Mike Langlois
Thanks for the question and using MS Q&A platform.
To compare two dates in ADF to see which is greater, you can use the greaterOrEquals
function. This function compares two dates and returns true if the first date is greater than or equal to the second date. Here's an example of how to use this function:
@greaterOrEquals(string(variables('date1')), string(variables('date2')))
In this example, date1
is the string variable that stores the first date, and date2
is the current UTC date obtained using the utcNow()
function. The string()
function is used to convert the dates to string format, which is required for the greaterOrEquals
function to work.
If you want to check if the first date is strictly greater than the second date, you can use the greater
function instead:
@greater(string(variables('date1')), string(variables('date2')))
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.