How to check the previous date

Hi @vaishali

Use Assign activity
LHS - Create an variable
RHS - Below condition

Convert into integer to get only Month

CInt( DateTime.ParseExact(“Input String”,(“yyyy MM dd”),Globalization.CultureInfo.InvariantCulture).ToString(“MM”))

Convert into integer to get only Year

CInt( DateTime.ParseExact(“Input String”,(“yyyy MM dd”),Globalization.CultureInfo.InvariantCulture).ToString(“yyyy”))

Hope it will works

Regards
Gokul

3 Likes