I would like to identify whether the date is being backdated or not.
i have two variable , TodayDate & DeliverToDate, both is String variable.
TodayDate=DateTime.Now.ToString(“dd MMM yyyy”, System.Globalization.CultureInfo.InvariantCulture)
i use if condition under the following expression
then will pop up error and stated it is backdated.
so i tested for below condition:-
DeliverToDate= 03 May 2021
Today Date= 26 Apr 2021
the expected outcome should be the workflow run successfully as it is not backdated.
But now it pops up error.
Kindly advise how to do so. Is it i will need to set both variable to be datetime variable?
but how to set the row item to be datetime variable?