function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
public class dobClass{ public static void dobMethod(){ Date dob= Date.newInstance(1998, 6, 1); Datetime dt = DateTime.newInstance(dob, Time.newInstance(0, 0, 0, 0)); String dayOfWeek=dt.format('EEEE'); System.debug('Day : ' + dayOfWeek); } }
Datetime dt = DateTime.newInstance(Date.today(), Time.newInstance(0, 0, 0, 0)); String dayOfWeek=dt.format('EEEE'); System.debug('Day : ' + dayOfWeek); OR Datetime dt = System.now(); System.debug(dt.format('EEEE'));
In case you find any other issue please mention.
If you find your Solution then mark this as the best answer.
All Answers
In case you find any other issue please mention.
If you find your Solution then mark this as the best answer.
Try Below Code Please Mark It As Best Answer If It Helps
Thank You!