Salesforce Fact #675 | Get day of week in apex
We can check day of week in apex class using the format() function of DateTime class.
If it takes the parameter 'EEE' corresponding to a datetime, it returns the abbreviated day name. And if it takes the parameter 'EEEE' corresponding to a datetime, it returns the full day name.
Attached is the screenshot.
Comments
Post a Comment