How to get the value of the current year?
|
1 answer
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
|
First you need to get the value of "now" using DateTime.Now
And then use the Year property
var currentYear = DateTime.Now.Year; Source: https://ru.stackoverflow.com/questions/511539/
All Articles