Date in input field to last month (web application)

Hi @Markus_Reimer

Check the below expression for From field,

- Assign -> FromDate = DateTime.ParseExact(Now.ToString("MMMM yyyy"),"MMMM yyyy",System.Globalization.CultureInfo.InvariantCulture).AddMonths(-1).ToString("dd/MM/yyyy")

Check the below expression for To field,

- Assign -> ToDate = DateTime.ParseExact(Now.ToString("MMMM yyyy"),"MMMM yyyy",System.Globalization.CultureInfo.InvariantCulture).AddDays(-1).ToString("dd/MM/yyyy")

Hope it helps!!

2 Likes