TimeAndDate

Use this module to change the default format for date representation in the application.  You can change the default date formats for any of the site’s languages. To find a list of locations, please see the Setting the Date and Time Format Display article.

The application has 3 date formats, used in different locations and chosen according to the context and the space available. You can also apply different date format for different languages, using the mapping below.
Leave the fields empty, to use system defaults:
  1. Long (e.g: Saturday, June 12, 2021)
  2. Short (e.g: June 12, 2021)
  3. Long with no year (e.g: Saturday, June 12).


Admins may choose a language to apply different date format for different languages.

To choose and change the date format, please use the following strings:
  • YYYY: 4-digit year '2019'
  • YY: 2-digit year '19'
  • MMMM: Full-length month 'June'
  • MMM: 3 character month 'Jun'
  • MM: Month of the year, zero-padded '06'
  • M: Month of the year '6'
  • dddd: Day of the week 'Sunday'
  • DD: Day of the month, zero-padded '01'
  • D: Day of the month '1'
  • Do: Day of the month with numeric ordinal contraction '1st'
Here's some common date formats and how to express them using tokens:
  • To show '2019-06-01' use: YYYY-MM-DD
  • To show 'June 1st, 2019': MMMM Do, YYYY
  • To show 'The 1st of June' use: [The] Do [of] MMMM
  • To show '6/1/2019' use: M/D/YYYY
  • To show '2020年 5月11日 火曜日' use: YYYY[年] MM[月] DD[日] dddd


Field

Description

timeDisplayChoose how to show the time in the application.
AddLanguageDatesClick to open the date representation for a specific language configuration.
Language
Choose the language you would like to apply these specific date format to from the site’s languages. Each language may have its own setting, if left empty, the default is used.
longDateFull date including the day of the week. e.g: Saturday, June 12, 2021.
shortDateDate not including the day of the week. e.g: June 12, 2021.
longDateNoYearDate including the day of the week, but no year. e.g: Saturday, June 12.

For additional information see  Localization for KMS/KAF Administrators - How to Change Your Kaltura Application Language?


In This Article
Was this article helpful?
Thank you for your feedback!