Skip to main content

How do I display dates in the US format in reports? - Using Deskpro - Deskpro Support

How do I display dates in the US format in reports?

Authors list

In some geographies and organizations, date formats can appear differently to others. If you'd like to alter the format of the date in the reports you create, simply use the following clause to produce desired results:

SELECT DATE_FORMAT(tickets.date_created, '%Y-%m-%d') AS 'Date created'

For example, the following query:

SELECT DATE_FORMAT(tickets.date_created, '%Y-%m-%d') AS 'Date created', ticket_messages.date_created

Will create the following result, where the month value is displayed prior to the day value:

For more information, please refer to our guide on making reports.

Hasznos Unhelpful

3 of 9 people found this page helpful

Kérjük ebbe a mezőbe írja hozzászólását, majd kattintson a 'Hozzászólás beküldése' gombra...

Please log in or register to submit a comment.

Need a password reminder?