Skip to main content
Version: 11.x

Date & Time

The Date & Time datasource is always available in Smartsign and can be bound to text fields in any template or layout, regardless of other datasources that are used.

This makes it easy to display clocks, dates, weekdays, or week numbers on your screens without requiring additional configuration.

alt text alt text

How it works

The Date & Time datasource outputs the current time information based on the format and settings you choose. Smartsign provides four preset values that you can use directly or customize:

  • Current Time
  • Current Date
  • Current Day
  • Current Week

Each preset can be formatted using a DateTime format string, allowing you to control exactly how the date or time is displayed.

Create date & time template

Date & time elements are included in many templates and screen layouts by default, but you can always create your own if you need a specific design or additional time zones.

In this example, we will create a template that displays two different time zones.

  • Go to Templates and select Create New alt text
  • Enter a name and description, then click create alt text
  • Start by adjusting the template settings such as size and background color alt text

Add elements for the first time zone

Add the text boxes that will display your Date & Time values:

  • Headline alt text
  • Current day - Use a preset or apply a custom format using the token tables alt text
  • Current time alt text
  • Day, Month, Year - This text box will use a custom DateTime format string alt text

Add design elements (optional)

You can enhance your design by adding shapes such as boxes or circles.

  • Click the Shape button to add a design element to the template alt text
  • Position the shape where you want it.
    The Layers panel controls which elements appear in front or behind others — items higher in the list appear on top. alt text
  • Adjust the shape using background color, rounded corners, borders, shadows, or other style options to fit your design alt text

Duplicate the first timezone-group

Once the first time zone layout is complete, you can group the elements and duplicate them to create a second time zone with the same design.

  • Select all layers in the Layers panel and click Group Layers alt text

  • You can now select the entire group to resize or reposition everything at once.
    Renaming the group and its layers can make them easier to identify later. alt text

  • Use Copy/Paste on your keyboard to duplicate the group.
    This preserves all styles and settings for the new time-zone block. alt text

    • tip

      Copy/paste can also be used for individual items, which is very useful when multiple elements share the same formatting.

  • Update the fields in the second group by selecting the appropriate name and time zone in the datasource settings alt text

Final adjustments

Make any additional adjustments to the template, such as alignment, spacing, background images, or other visual components alt text

  • Use Preview to verify that the correct live data is shown for both time zones alt text alt text
  • Save the template. It is now ready to be published on a screen.

Configuration options

When binding the Date & Time datasource to a text field, the following settings are available:

SettingDescriptionExample
Date formatInput a "DateTime format string" to control how the date/time is presentedYYYY-MM-DD
Time zoneSelect which time zone to use for the displayed date/timeEurope/Kiev
LanguageSelect which language to use for the date/timeEnglish

DateTime format strings

A DateTime format string defines how the final date or time should appear.
Format strings use tokens to represent each part of a date, such as year, month, day, hour, or week number.

Smartsign uses the Moment.js formatting standard and you can find some common examples in the following tables.

For a full list of supported tokens, please refer to the official documentation: https://momentjs.com/docs/#/displaying/format/.

Year

TokenOutputResult
YYYYFull year2025
YYTwo-digit year25

Month

TokenOutputResult
MMMonth number (01–12)03
MMonth number (1–12)3
MMMMFull month nameMarch
MMMShort month nameMar

Day

TokenOutputResult
DDDay of month (01–31)09
DDay of month (1–31)9
ddddFull weekday nameMonday
dddShort weekday nameMon
dWeekday number (0–6, Sunday = 0)1

Time

TokenOutputResult
HHHour (00–23)03
HHour (0–23)3
hhHour (01–12)02
hHour (1–12)2
mmMinutes (00–59)07
mMinutes (0–59)7
ssSeconds (00–59)05
sSeconds (0–59)5
aam/pmpm
AAM/PMPM

Week

TokenOutputResult
WISO week number1
WWISO week number (two digits)01

Combined examples

DateTime format stringResult
dddd, MMMM DoMonday, March 4th
HH:mm14:37
YYYY-MM-DD HH:mm2024-03-04 14:37
MMM DD, YYYY - h:mm AMar 04, 2024 - 2:37 PM
dddd [week] WMonday week 11