Answers.Body: <p>I would just revert to either to <code>DateTime()</code> or <code>date('D', strtotime($dateField))</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-17T13:49:28.710Z
Answers.Text: Thanks ErikH - so no CiviCRM way of doing things just write a php function to provide the desired string to display.
Answers.UserDisplayName: theTechnaddict
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-17T12:14:24.980Z
Answers.LastActivityDate: 2015-11-17T12:14:24.980Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I am modifying the activity report for use in a dashlet.</p>
  
  <p>The activity date ('civicm_activity_activity_date_time') is currently displayed as November 18th, 2015 2:00 PM</p>
  
  <p>I can change the format of a date using CRM_UTILS_DATE::customFormat, but since this is a report of this current week's activities, what I really want to do is shorten it all by suppressing the month and the year altogether - (and even converting the date to a day)</p>
  
  <p>Is there a CiviCRM way to do this?</p>
  
Tags: <custom-reports>
Title: How can I suppress parts of the date in a report
ThreadText: # How can I suppress parts of the date in a report
  
  (Asked by: username_0 on 2015-11-17)
  
  I am modifying the activity report for use in a dashlet.
  
  The activity date ('civicm\_activity\_activity\_date\_time') is currently displayed as November 18th, 2015 2:00 PM
  
  I can change the format of a date using CRM\_UTILS\_DATE::customFormat, but since this is a report of this current week's activities, what I really want to do is shorten it all by suppressing the month and the year altogether - (and even converting the date to a day)
  
  Is there a CiviCRM way to do this?
  
  **Tags:** custom-reports
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-11-17. Score: 1
  
  I would just revert to either to `DateTime()` or `date('D', strtotime($dateField))`
  
  > **Comments:**
  > **username_0**: Thanks username_1 - so no CiviCRM way of doing things just write a php function to provide the desired string to display.  
  
  ---
  
  