Skip to Content
sdeck docs

Formats

Dates, times, durations and numbers, the way you want them.

These work wherever text or an expression does: labels, looks, conditions and workflow steps. The braces button lists them under Functions, with ready-made ones to insert.

WriteTo get
{{time()}}16:41
{{time("h:mm A")}}4:41 PM
{{time("HH:mm", "Asia/Tokyo")}}01:41
{{date("dddd D MMMM")}}Thursday 3 December
{{date("[Week] W")}}Week 49
{{duration(5400, "h[h] mm[m]")}}1h 30m
{{format(1234.5, "$#,##0.00")}}$1,234.50
{{format(15300, "0.0a")}}15.3K
{{format(system.cpu, "0.0%")}}42.3%

Dates and times are made of these. Put other words in [brackets], or their letters are read too.

PartWrite
YearYYYY 2026, YY 26
MonthMMMM December, MMM Dec, MM 12 with a zero, M without
DayDD 03, D 3, Do 3rd, DDD day of the year
Weekdaydddd Thursday, ddd Thu
WeekWW, W (weeks start on Monday)
HourHH 16, H without a zero, hh 04, h 4, A PM, a pm
The restmm minutes, ss seconds, SSS milliseconds, Z time zone

time and date show now. Give them a moment to show that instead, and a time zone after it: time("HH:mm", event.at, "Europe/Paris"). A moment is a date as text, or the time since 1970.

Durations count seconds. The largest unit takes the rest: 90 minutes are 90:00 as m:ss, 1:30 as h:mm.

Numbers: 0 is a digit that always shows and # one that shows if needed. A comma groups thousands, + shows the sign, and an a right after the digits shortens to K, M, B or T. Anything around them stays as it is, and % does not multiply. format takes dates too, when there is no 0 or #.