DateTime date = DateTime.Today; persianCalender persian = new persianCalender() int year= persian.GetYear(date); if (year>1395) { Console.Write("Happy new year:-D\nNew year: "); Console.Write(year); }
---------------------------- Output ---------------------------
Happy new year :-D
New year: 1396