Tuesday, 6 November 2012

To get Day, Month and Year from Date using Apex in Salesforce

Date datobj;Integer dy = datobj.day();Integer mon = datobj.month();Integer yr = datobj.year();

No comments:

Post a Comment

Why to use Database.Stateful()?

Database Stateful is interface. It is used in batch classes to maintain the state of the class across transactions i.e. if you want to use ...