Date format on ticket description | Community
Skip to main content

Date format on ticket description

  • November 20, 2015
  • 1 reply
  • 0 views

when we chose a date in the ticket field and add that date to the description using placeholders it uses the American format, could it be changed to include the English format

This topic has been closed for replies.

1 reply

  • November 20, 2015

Hi Amy, 

  I'd suggest that you use "Regular Expression" instead of "Date" field.  By doing so, you'll be able to define a format that suits your needs.  Regex uses Ruby, thus if you'd like to display DD/MM/YYYY, the regex would look like this:

\b(3[0-1]|[1-2][0-9]|0?[1-9])/(1[0-2]|0?[1-9])/([0-9]{4})\b

  Here's what it'd look like on End-user GUI (Zendesk default format - date field - Vs. Ruby regex:


 

  I'd suggest you add a description to guide End-users wrt the format to be entered:


 

Rgds

Serge