Table of Contents

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:



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

{
   "date_published":"2021-03-15"
}
{
   "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"
}