KVR JOBS HUB
SALESFORCE
Home
.NET
ORACLE
SALESFORCE
WebServices in salesforce
Sunday, 26 October 2014
How to find the number of days for a month using Apex in Salesforce?
Sample Code:
Integer numberDays = Date.daysInMonth(2014, 2);
system.debug('No of days in this month is ' + numberDays);
Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment