SyntaxYear(DateTime)CopyCopiedExamples=Year(Today())CopyCopied2026Official documentation on Microsoft Learn ↗← PreviousWith