Date Format
Now lets have a look into the display of the event data. These options can also be found in a section in the Layout tab.
Date format
The first option in this section concerns the format of the date display in the module. You can leave this field empty, then your configuration from the component is automatically taken over. This ensures that the same format is used everywhere.
But if you want to change the format you can do it in this field. The module works with the standard PHP definitions for date output:
h | Hours in 12 hours format |
H | Hours in 24 hours format |
i | Minutes with leading zeros |
d | Day of the month, 2 digits with leading zero |
D | Day of the week, shortened to three letters |
j | Name of the Day |
l (small "L") | Day of the week written out |
F | Month as a whole word, like January or March |
m | Month as number, with leading zeros |
M | Month name with three letters |
Y | Four digit year |
y | Year, two digits |
So if you want to display a date in one of these formats you can use it like this:
- for 12/31/2020 the field value looks like this:
m/d/Y
- for 31.12.20 the field value looks like this:
d.m.y
- for Friday, 31.12.2020 the field value looks like this:
j, d.m.Y
- for Friday, 31.12.2020 at 16:00 the field value looks like tihs:
j, d.m.Y at H:m
You can find the complete list of the definition here: https://www.php.net/manual/de/function.date.php (unfortunately, the table is not listed on the English version of the page...)
In addition to the date field you can also define in the module if you want to display time & date combined or separated. This leads to the time being displayed on a new line if this option is activated. Furthermore you get an additional input mask in which you can define the format for the time.
The additional field Time format is displayed if the time is to be displayed separately.
The time suffix is also a simple text field that can be defined either by the component settings or by the module itself. If you want to add an information like "o'clock" behind the time you can do that here.