How to get current year using apex in Salesforce?

Sample Code:

Integer Year = Date.Today().Year();

No comments:

Post a Comment