Date Dynamic Content
In this article we're going to explain how to use Date Dynamic Content.
Cornerstone will gladly give you the time of day (he's friendly like that). It can also give you the days of the week as well as months of the year. Use this set of Dynamic Content to compare dates, display a future date, or loop over the months or days in a year.
All data points in this Dynamic Content set utilize the PHP Datetime Formats. For instance, d as the format will output the day of the month using two digits with leading zeros. You can combine these format characters to a specific date format. For instance, Y-m-d will output the year, month, and then day (Example: 1994-01-23).

Generic
Generic takes any human readable date and converts it to whatever format you provide. For instance, +2 days on a Monday with l as the format will give you Wednesday.
Example:
{{dc:date:generic date="+1 year" format="m/d/Y"}}
Days of Week
This will give you an array of days of the week. You can pass this into the Dynamic Content Looper Provider to then loop over each day of the week. In your Looper Consumer, you can then use {{dc:looper:item}} to output the day. You can configure how the day outputs via the format argument. The default is l which is the full day name.
As digits (01 or 31)
{{dc:date:days_of_week format="d"}}
As short day name (Wed or Mon)
{{dc:date:days_of_week format="D"}}Months of Year
This will give you an array of months of the week. You can pass this into the Dynamic Content Looper Provider to then loop over each day of the week. In your Looper Consumer, you can then use {{dc:looper:item}} to output the month. You can configure how the day outputs via the format argument. The default is F which is the full day name.
As digits (01 or 12)
{{dc:date:months_of_year format="m"}}
As short month name (Jan or Dec)
{{dc:date:months_of_year format="M"}}Days of Month
This will give you an array containing every day in a given month. It automatically accounts for the correct number of days, so February will return 28 days (or 29 in a leap year), while months like April will return 30. You can configure how each day outputs via the format argument. The default is j, which is the day of the month without leading zeros (1 to 31).
This data point accepts two additional arguments:
month— The month to pull days from, as a number (1–12). Defaults to the current month.year— The four digit year, such as2024. Defaults to the current year. The year matters because it determines whether February has 28 or 29 days.
Every day in the current month (1, 2, 3 …)
{{dc:date:days_of_month}}
Every day in February 2024 as two digits (01, 02, 03 …)
{{dc:date:days_of_month format="d" month="2" year="2024"}}
Full date for each day of December 2024 (2024-12-01, 2024-12-02 …)
{{dc:date:days_of_month format="Y-m-d" month="12" year="2024"}}Looping Over the Days of a Month
Because days_of_month returns an array, it is meant to be paired with a Looper so you can output a design element for each day. To do this, use the Dynamic Content Looper Provider (see Loopers).
- Add a Looper Provider to the element you want to repeat and set its type to Dynamic Content.
- In the Dynamic Content field, insert the Days of Month data point, for example
{{dc:date:days_of_month format="j" month="12" year="2024"}}. - Enable a Looper Consumer on the same element (or a child element). The element will now render once for every day in the month.
- Inside the Looper Consumer, output the current day with
{{dc:looper:item}}. You can also use{{dc:looper:index}}for the position in the loop.
This is useful for building things like a simple calendar grid, a list of daily availability, or a repeating date badge. For example, a Looper Consumer with the following would render each day of the configured month:
Day {{dc:looper:item}}See Looper Dynamic Content for the full set of values available inside a Looper Consumer.
See something inaccurate? Let us know