Date and time formatting in placeholders
There are many placeholders that contain date and time information. Slide Presenter offers a very flexible way to format how this date / time information is displayed: so called format templates.
Format templates are a string of text in which certain patterns are replaced with the actual values.
An example is MM/dd/yyyy HH:mm:ss - this format string becomes somthing like “02/23/2008 13:12:59”.
Common format templates
The whole list of patterns can be a little overwhelming. Take these as starting points:
-
For dates with leading zeros:
MM/dd/yyyybecomes “04/29/2026”dd.MM.yyyybecomes “23.02.2008”
-
For times with leading zeros:
HH:mmbecomes “23:59”hh:mm bbecomes “11:59 PM”
There are shorthand patterns that represent a whole localized date / time. This will show the date in the way the user is most used to, based on their browser locale. Beware that presentations created in Germany will then show a different date format than presentations created in the US.
Pbecomes “04/29/2026” or “29.04.2026” etc.pbecomes “11:59 PM” or “23:59” etc.Ppbecomes something like “04/29/2026 11:59 PM”
Reference of available patterns
Here is a list of useful patterns for your format templates.
Beware! The patterns are case sensitive.
| Pattern | Meaning |
|---|---|
| Calendar year | |
| y | 44, 1, 1990, 2026 |
| yy | 44, 01, 90, 26 |
| yyyy | 0044, 0001, 1990, 2026 |
| Month | |
| M | 1, 2, …, 12 |
| MM | 01, 02, …, 12 |
| MMM | Jan, Feb, …, Dec |
| MMMM | January, February, …, December |
| Day of the month | |
| d | 1, 2, …, 31 |
| dd | 01, 02, …, 31 |
| do | 1st, 2nd, …, 31st |
| Hours (1-12) | |
| b | AM, PM, noon, midnight |
| bbb | am, pm, noon, midnight |
| h | 1, 2, …, 11, 12 |
| hh | 01, 02, …, 11, 12 |
| Hours (0 - 23) | |
| H | 0, 1, 2, …, 23 |
| HH | 00, 01, 02, …, 23 |
| Minutes | |
| m | 0, 1, …, 59 |
| mm | 00, 01, 02, …, 59 |
| Seconds | |
| s | 0, 1, …, 59 |
| ss | 00, 01, 02, …, 59 |
| Day of the week | |
| E | Mon, Tue, Wed, …, Sun |
| EEEE | Monday, Tuesday, Wednesday, … |
| EEEEE | M, T, W, T, F, S, S |
| EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su |
| Day of the year | |
| D | 1, 2, …, 365, 366 |
| DDD | 001, 002, …, 365, 366 |
| Do | 1st, 2nd, …, 366th |
| Week of the year | |
| w | 1, 2, …, 53 |
| ww | 01, 02, …, 53 |
| wo | 1st, 2nd, …, 53th |
| Quarters | |
| Q | 1, 2, 3, 4 |
| Qo | 1st, 2nd, 3rd, 4th |
| QQQ | Q1, Q2, Q3, Q4 |
| Timezones | |
| z | GMT-8, GMT+5:30 |
| x | -08, +0530 |
| Seconds Timestamp | |
| t | 1775655437 |
| Full localized dates | (uses the locale of the current browser) |
| P | 04/29/2026, 29.04.2026, 2026. 04. 08., … |
| PPP | April 29th, 2026 / … |
| PPPP | Friday, April 29th, 2026 / 2026. április 8., szerda / Mittwoch, 8. April 2026 |
| p | 12:00 AM, 23:59, … |
| Pp | 04/29/2026 12:00 AM, 29.04.2026 12:00, … |
And there’s even more! Under the hood, Slide Presenter uses date-fns for date formatting. Everything mentioned in the date-fns documentation works here as well.