Metadata - Date
You normally will change the date with the metadata manager, this article is informational.
Table of Contents
About
This page is about the string date format accepted by ComboStrap.
All date as the published date, start/end date are written in this format as string. You will then find them back in this format in the frontmatter.
Syntax
Combostrap understand all the following 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
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"
}