Hi,
I am fetching 2 dates from web application and storing it in a variable.
- “NOC Valid From” date is stored in “validFrom” variable.
- “NOC Valid to” date is stored in “validTo” variable.
- validFrom value = 13-Oct-2022
- validTo value = 12-Oct-2023
Validation
- I want to verify difference between above 2 dates is 1 year.
please help
Gokul001
(Gokul Balaji)
2
HI @shruthi_arali
Try with this expression
DateDifference = DateDiff(DateInterval.Day, Convert.todatetime(“13-Oct-2022”), Convert.todatetime(“12-Oct-2023”))
Check out this blog
Regards
Gokul
1 Like
what should be the variable type of DateDifference.
Hello @shruthi_arali
If you want to directly use the activity instead of LINQ, then you can try the Modify Date activity.
Thanks
Gokul001
(Gokul Balaji)
6
It should be - DateDifference variable to Int64
@shruthi_arali
Regards
Gokul
@Gokul001
Getting below error when i used variable as int32 for dateDiff
Gokul001
(Gokul Balaji)
8
You variable type Int64
@shruthi_arali
Click on the Browser Types

Search for Int64
Gokul001
(Gokul Balaji)
10
Check out this XAML file @shruthi_arali
Main.xaml (6.6 KB)
3 Likes
thank you @Gokul001 … Its working fine…
1 Like
system
(system)
Closed
12
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.