Date customization

Docs > Customise & Extend

Ohanah store date formats in the language files. To customize the date formats, you need to use Joomla language overrides.

There are two types of date formats in the Ohanah:

  1. PHP date formats 
  2. JavaScript date formats

It's important to use the correct date format. Some rules to make it easier:

  • It's JavaScript date format if string constant starts with KLS. Usually the format has some repeating letters (like 'dd/mmmm/yyyy')
  • It's PHP if string constant starts with COM_OHANAH and the date doesn't have repeating letters (like 'l, j F Y, H:i')

String constants in the administrator

  • COM_OHANAH_EVENTS_REPEATING_DATE_FORMAT
    Used in the repeating events summary in repeating event view
  • COM_OHANAH_ORDERS_DATE_FORMAT
    Used in the order view
  • COM_OHANAH_EVENTS_DATE_FORMAT
    Used in the event list
  • KLS_OHANAH_DATEPICKER_DATE_FORMAT
    Used in the date pickers in the event creation form (date select)
  • KLS_OHANAH_TIMEPICKER_DATE_FORMAT
    Used in the date pickers in the event creation form (time select)
  • KLS_OHANAH_RECURRING_SUMMARY_DATE_FORMAT
    Used in the recurring event summary in the repeating event modal

String constants in the administrator

  • COM_OHANAH_START_AT_DATE_FORMAT
    Used in the ticket widget for "Starts at" column
  • COM_OHANAH_RECEIPT_DATE_FORMAT
    Receipt date format
  • COM_OHANAH_FIRST_DAY_OF_THE_WEEK
    First day of the week. 0 is Sunday, 1 is Monday, etc.
  • COM_OHANAH_DATE_SEPARATOR
    Date separator that is used when two dates are displayed one next to another
  • COM_OHANAH_REPEATING_SUMMARY_DATE_FORMAT
    Repeating summary date format in the event list on the frontend
  • COM_OHANAH_DATE_TIME_SEPARATOR
    Separator that is used when separating the date and the time part
  • COM_OHANAH_TIME_FORMAT
    Time format
  • COM_OHANAH_DATE_FORMAT_SHORT_MONTH
    Date format using short month
  • COM_OHANAH_DATE_FORMAT_SHORT_MONTH_COLLAPSE_YEAR
    Date format with short month without year
  • COM_OHANAH_DATE_FORMAT_LONG_MONTH
    Date format with long month
  • COM_OHANAH_DATE_FORMAT_LONG_MONTH_COLLAPSE_YEAR
    Date format with long month without year
  • COM_OHANAH_DATE_FORMAT_DAY_NAME
    Day name
  • COM_OHANAH_ORDER_DATE_FORMAT_NUMBER
    Order date format number. See menu item date format setting for list of available formats.
  • COM_OHANAH_TICKET_DATE_FORMAT_NUMBER
    Ticket date format number. See menu item date format setting for list of available formats.
  • COM_OHANAH_RECEIPT_DATE_FORMAT_NUMBER
    Receipt date format number. See menu item date format setting for list of available formats.