Salesforce Apex: How to Lookup the Name of a Month from the Date Class

Two simple solutions for this common need

Jonathan Hsu
Code 85

--

The Date Class in Apex has some really nifty methods such as .isLeapYear() and daysBetween()— methods you didn’t know you needed, but you’re glad when you eventually do. Unfortunately, the quality of life methods exclude one that returns the name of the month. The most we have…

--

--