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

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow