function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Object_Name item : [ SELECT RequestDate__c FROM Object_Name limit 1 ]; if (item.RequestDate__c != null) { //Returns a numeric value representing the month (1-12) //1 = January Integer month = item.RequestDate__c.month(); }
can you please explain your scenario?
thanks
If all you're trying to do is get the month from a Date in Apex this will work: Please let us know if this helps.
Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra