I have a date string in format “dd.MM.yyyy”. I would like to check if this date is in the past or not.
it depends on your definition of past as it needs to be defined if today is past or not
Assign Activity
myDate | DataType: DateTime =
DateTime.ParseExact(YourDateString, "dd.MM.yyyy", System.Globalization.CultureInfo.InvariantCulture)
Condition:
myDate.Date <= Now.Date
Hi @tomaz ,
for eg: strDate=“01.05.2023”
Datetime.ParseExact(strDate,“dd.MM.yyyy”,Globalization.CultureInfo.InvariantCulture)<Now
You can use this expression inside an If statement.
It will tell you whether the date is in past
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.