This describe call:
returns "Due Date Only" rather than "Due Date" (that is used in e.g. the Task edit page).
Is there some significance to the "Only" part of the label?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
It seems likely we can attribute it to the linkage of
Activities, and the fact that
Event has a field called
ActivityDateTime in addition to
system.debug(Task.ActivityDate.getDescribe().getLabel()); // Due Date Only system.debug(Event.ActivityDate.getDescribe().getLabel()); // Due Date Only system.debug(Event.ActivityDateTime.getDescribe().getLabel()); //Due Date Time
Task does not have an
ActvityDateTime field, they probably wanted to maintain consistency across the two objects.