Change API Portal date and time formats

By default, API Portal uses the date-month-year (like "10 Mar 2017") format for dates and 24-hour clock for time. This section describes how to change the time and date formats in API Portal.

  1. Go to resource file directory of the language you want (for example, /opt/axway/apiportal/htdoc/language/fr-FR/), and open the language resource file (fr-FR.com_apiportal.ini).
  2. To change just the date format, find the UI string COM_APIPORTAL_LOCAL_DATE_FORMAT. To change both the date and time format, find the UI string COM_APIPORTAL_LOCAL_DATE_TIME_FORMAT.
  3. Change the value of the UI string to the format you want. The default format is d M Y. For more details on the formats PHP supports, see the PHP documentation for the date function.

The following list provides some examples on formats and their outputs:

  • m.d.y — 03.10.17
  • j, n, Y — 10, 3, 2017
  • Ymd — 20170310
  • F j, Y, g:i a — March 10, 2017, 5:16 pm
  • D M j G:i:s T Y — Fri Mar 10 17:16:18 UCT 2017
  • g:i a — 5:16 pm
  • H:i:s — 17:16:18
  • Y-m-d H:i:s — 2017-03-10 17:16:18 (the MySQL DATETIME format)

Related Links