c# - Get one year back from current date -


Hello I have to go back a year from the current year (which I am passing). Can anyone provide me a function or code that will do this?

You can use this method:

DateTime. Now. Extra years (-1);

Comments