How to get current year using apex in Salesforce? September 3, 2013June 9, 2022Magulan Duraipandian Sample Code: Integer Year = Date.Today().Year();