February 9, 2016 HomeC# QuestionsHow to Get Current Year in C#/CSharp How to Get Current Year in C#/CSharp By Krishnaa C# Questions 0 Comments To get current year in C#/CSharp, we make use of DateTime class. Example is given below. using System; namespace Hello_World { class Program { static void Main(string[] args) { DateTime current = DateTime.Now; Console.WriteLine(current.Year); } } } ; You May Also Like: How to Get Current Month in String Format in C#/CSharp How to Get Current Date in C#/CSharp How to Get Current Time in C#/CSharp How to Convert Datetime to DD/MM/YYYY Format in C#/CSharp How to Trim a String in C#/CSharp