[ Log In ]
Skip Navigation Links

Date Functions and Calculations in C#

To find the year, month and day component of a DateTime variable:
variable.year
variable.month
variable.day