APEX SALESFORCE Salesforce Customization Salesforce.com SOQL

How to get the Current Date and Year Using Apex Class?

How to get the Current Date and Year Using Apex Class? System.debug(‘************ ‘ + system.today().format()); System.debug(‘************ ‘ + date.today().format()); Output:- ************ 07/16/2014 ************ 07/16/2014 How to get current year using Apex in Salesforce? Integer Year = Date.Today().Year(); Output:- ************ 2014…

Read More