Hi All,
I have 2 dates in string variables date1str = “Aug 01, 2023” and date2str = “Sep 01, 2023”. How can i compare that date1<date2. Because compare date activity is not available in studio. Also i am unable to get/install Workflow Manager package.
Assign date1 = DateTime.ParseExact(date1str, "MMM dd, yyyy", System.Globalization.CultureInfo.InvariantCulture)
Assign date2 = DateTime.ParseExact(date2str, "MMM dd, yyyy", System.Globalization.CultureInfo.InvariantCulture)
If date1 < date2 Then
// Date1 is earlier than date2
// Add your actions for this case here
Else
// Date1 is not earlier than date2
// Add your actions for the other case here
End If
Hope it helps!!
date1str = "Aug 01, 2023"
date2str = "Sep 01, 2023"
date1 = DateTime.ParseExact(date1str, "MMM dd, yyyy", System.Globalization.CultureInfo.InvariantCulture)
date2 = DateTime.ParseExact(date2str, "MMM dd, yyyy", System.Globalization.CultureInfo.InvariantCulture)
If date1 < date2 Then
// date1 is earlier than date2
// Your logic here
ElseIf date1 > date2 Then
// date1 is later than date2
// Your logic here
Else
// date1 and date2 are the same
// Your logic here
End If
Please find below xaml for your refernce
BlankProcess8.zip (151.2 KB)
Hope this helps!!
we assume that your project is set to Windows compatibility. The Windows.Workflow.Manager package is available for Legacy, but not for Windows compatibility
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.