If i understand you properly...
To get current year, use this:
int currentyear = DateTime.Today.Year;
or (even better):
DateTime currentdate = DateTime.Today;
int currentyear = currentdate.Year;
For further details, please see:
DateTime Structure (System)[
^]
[EDIT]
DateTime currentdate = DateTime.Today;
DateTime nextyeardate = DateTime.Today.AddMonths(8);
int currentyear = currentdate.Year;
int nextyear = nextyeardate.Year;
if (nextyear-currentyear==1)
{
Console.WriteLine("Next year!");
}
else
{
Console.WriteLine(":(");
}
if-else (C# Reference) | Microsoft Docs[
^]