Which string date format are supported by Combostrap

Undraw File Analysis 8k9b

String Date Format

You normally will change the date with the metadata manager, this article is informational.

About

This page describes the date string formats supported by ComboStrap.

Syntax

Reading

Combostrap understands all the following string format as date:

YYYY-MM-DDTHH:MM:SS+hh:mm // iso 8601 format
YYYY-MM-DD HH:MM:SS+hh:mm // timestamp format
YYYY-MM-DD HH:MM:SS 
YYYY-MM-DD HH:MM
YYYY-MM-DD HH
YYYY-MM-DD

where:

  • YYY-MM-DD is the day part and is the only one mandatory. For instance for the first January of 2021: 2021-01-01
  • T is a separator used in ISO8601 format between the day and time part (optional, handy when copying)
  • HH:MM:SS is the time part. For instance, for 2 hour pm, 15 minutes and 20 seconds: 14:15:20
  • +hh:mm is a positive or negative time offsets from the UTC timezone (ie London). For instance, Europe/Paris (one hour timezone from London) +01:00



You can use any of this format in a pipeline to format a literal date

Example:

${"2022-05-23" | format()}

Monday, May 23, 2022

Writing

When combostrap stores a date, it writes it in the below iso 8601 format.

YYYY-MM-DDTHH:MM:SS+hh:mm

All date (created, modified, published, start/end date) are written/stored in this format as string.

You will find them back in this format:

Time

  • at the day level, the default time is midnight, ie 2021-03-15 00:00:00+00:00
{
   "date_published":"2021-03-15"
}
  • at the hour level (10 hour), the default minute and second are null. ie 2021-03-15 10:00:00
{
   "date_published":"2021-03-15 10"
}

Timezone

The dates are all located in the timezone of your server

For instance, a date with the Europe/Paris timezone.

{
   "date_published":"2021-03-15 10:00:00+01:00"
}




Showcase yourself and your brand

Get free news, tips, and tricks
to create a remarkable experience for your readers.




Related HowTo's
How to format a date ?

This page shows you how to format a date.
Undraw Animating
How to generate a list of events?

This howto shows you how you can generate a list of pages event with the iterator components. page sql a list element with the date_start and date_end formated date of a page event...


Recommended Pages
Undraw My Documents
ComboStrap Semantic - Event

An event page is a page that describes an event
Undraw File Analysis 8k9b
Date

This page describes date management in ComboStrap ComboStrap supports the following date metadata: creation date modification date published date All dates are available as variable that you...
Undraw My Documents
The published date

The published date is a field that permits late publication by modifying the published date of a page.



Task Runner