2day Stack

2day Stack

display today’s date in any format or language

The 2day Stack is a simple to use stack that will display today’s date. The many options of the stack make it possible to display the date in any format (7/6/2017, 17‑06‑07, 7 juni 2017, Sunday, June 6, 2017 etc.). You can even add some text before and after the date, making full sentences with the date. The date can be fully localised and styled using the options of the stack.

Demos
Here’s an example of the 2day Stack with its default settings:

Today is

Below is another example, using just the day of the month (with leading zero), the month and the last two digits of the year:
Names of the month are replaced with numbers (01…12) to show the month as digits.


Below is another example, using just the day of the week and some text before and after the date:

You’ve come to the right place to find some great new stacks this boring

Another example, localised (Dutch) and fully styled (see also fig. 1):

Het is vandaag .
In the last example, the actual date will not break when the window gets smaller, but always stay on one line. This is achieved by separating the day of the month, the month and the year with non breaking spaces ( ) instead of normal spaces (see fig. 1).

NB
The stack will show the visitors date, as set by his device.
By default, the date text will inherit the styling of the area it is displayed in as defined by the theme. Use the option of this stack to overrule this styling.
For a date with digits only (like 03/04/17), replace the names of the months with 1-12 or 01-12.
In Edit mode, this stack cannot show the actual date, but at least tries its best to show the format and styling.

Background

A long time ago, I wanted to show the current date in my blog. I reused a script I found here for that. Several people asked me if this was done with a stack (it wasn’t), so I adjusted that script to make it more flexible (leading zeros on/off, two or four digits for the year, etc.), and turned it into a stack.

Limitations
When the visitor has JavaScript disabled in his browser, the date will not show.

Support
Please use this form to report all issues, questions and comments.

This stack requires the Stacks plugin by YourHead (version 3).
Today HUD
fig. 1
© 2012-2018 Marathia Web Design | Contact