DateTime.year Property¶ Module: DateTime Type: int Definition¶ The year (1 through 9999, 0 if invalid date).