Get date before 6 months

How to get the date before 6months

3 Likes

Hi @Sweety_Girl

Now.ToString.AddDays(-181).ToString(“dd/MM/yyyy”)

Thanks
Ashwin.S

1 Like

@Sweety_Girl

Try this.

   Now.ToString.AddMonths(-6).ToString(“dd/MM/yyyy”)
6 Likes

Hi
Hope this expression would help you resolve this
If we want as DateTime variable then in assign activity
dat_value = Now.AddMonths(-6)

Where dat_value is a variable of type System.Datetime

Or

If we want as string then in assign activity

str_date = Now.AddMonths(-6).ToString(“dd/MM/yyyy”)

Where str_date is a variable of type string

Nee can also get any date format we want and it comes as we mention inside the ToString()

Cheers @Sweety_Girl

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.