Now.AddYears(-1).Month (although this will be the same as your input date)
Now.AddYears(-1).Day (although this will be the same as your input date)
Now.AddYears(-1).Year (although this will be the same as your input year minus 1)
Now.AddYears(-1).ToString(“MMMM”) will give you the month name
2)How to get the year from file name
Example: Asno_Slate_data_2023_20231232
If you know it’ll always be that format, with the year the last value and _ before it, then you can just get it with string manipulation: