Monday, September 7, 2020

How to get First day of the month using apex in salesforce

 Sample Code

System.debug('First Day ==> '+Date.today().toStartOfMonth());

Output

No comments:

Post a Comment