Input date previous year

How do I input the inner year into the form?

ex: 06042021 06042022

Hi,

Can you try as the following?

Regards,

@Rodrigo_Buch You can use this code now.AddYears(-1).ToString(“ddMMyyyy”) which will give last year date

Hello @indra @Yoichi

Thanks for the help it worked for me like this:
now.AddYears(-1).ToString(“ddMMyyyy”)+" - "+DateTime.Now.AddDays(-1).ToString(“dd-MM-yyyy”)

image

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