How to get the value of the current year?

    1 answer 1

    First you need to get the value of "now" using DateTime.Now

    And then use the Year property

    var currentYear = DateTime.Now.Year; 
    • It works, thanks ! - Pyrejkee