Date from 6 months ago

Hi All,

I need to type in the date from 6 months ago from todays date. This will be entered into a box on a website. I am struggling to think of a code that would work. I have tried: Now.ToString.addmonths(-6).ToSttring(“dd/mm/yyyy”)

Am I missing something on this?

Hi @csanders ,

Try the below expression

now.AddMonths(-6).ToString("dd/MM/yyyy")

1 Like

Thank you :slight_smile:

1 Like

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