Skip to main content

Date & Time

Reads the value as a moment, adjusts it if asked, then writes it out in the form the next step needs: a publish date as Sep 18 for a Slack message, a Jira timestamp as the epoch milliseconds a Brightspot date field holds, or a publish date 30 days on as an embargo's end. A list has each of its items read, adjusted, and written in turn.

Start from what you want:

WantRead AsAdjustOutput
A publish date in a Slack message, as Sep 18, 2026AutomaticPattern MMM d, yyyy
A Jira timestamp in a Brightspot date fieldAutomaticTimestamp, Epoch Milliseconds
An embargo that ends 30 days after publishingAutomaticShift by 30 daysTimestamp, ISO-8601 With Offset
Due at 9:00 AM next Monday, from the run context's NowAutomaticShift by 1 week, Snap To the start of the week, Set Time 09:00Timestamp, ISO-8601 With Offset
Days since content was last modifiedAutomaticTime Between, Since, days
A Slack message's ts for people to readEpoch SecondsStyle, Medium date, Short time
A spreadsheet's 09/18/2026Pattern MM/dd/yyyyTimestamp, Date

The Date & Time reference describes each field, in the same words its Guide icon shows in the tool. The shapes Read As offers, and what each reads, are described under its entry in the reference.

A timestamp that carries an offset, or is an epoch number, already names a moment, so neither time zone setting changes how it is read.

Adjustments​

Each adjustment works on the calendar of Time Zone, so a day is the day as that zone sees it. They run in order, so Shift by 1 week, Snap To the start of the week, then Set Time to 09:00 gives 9:00 AM on the coming Monday.

Shift​

Moves the moment later (Add) or earlier (Subtract) by a whole Amount of a Unit, from seconds to years. Amount accepts a variable reference. A month after January 31 is the last day of February, and a day after 9:00 AM is 9:00 AM again, even across a daylight-saving change.

Snap To​

Moves the moment to the start or end of the hour, day, week, month, quarter, or year it falls in. A week starts on Monday, and an end is the period's last millisecond, such as 23:59:59.999.

Set Time​

Moves the moment to a Time of day on the 24-hour clock, such as 09:00, on the day it falls on.

Outputs​

Timestamp​

Writes the moment in a machine-readable Format. The formats, with an example of each, are listed under Format in the Date & Time reference.

Pattern​

Writes the moment in a Pattern of your own. Each letter stands for one part of the date or time, and repeating it changes how that part is written; anything else in the pattern, such as a comma or a space, is written as it is. Month and day names are written in Locale's language, or the server's when it is blank.

LettersWritesExample
yyyyThe year2026
yyThe year's last two digits26
M / MMThe month as a number, without or with a leading zero9 / 09
MMM / MMMMThe month's short or full nameSep / September
d / ddThe day of the month, without or with a leading zero8 / 08
EEE / EEEEThe day of the week's short or full nameFri / Friday
H / HHThe hour on the 24-hour clock15
h / hhThe hour on the 12-hour clock3 / 03
mmThe minute30
ssThe second05
aAM or PMPM
zThe time zone's short nameEDT

So MMM d, yyyy writes Sep 18, 2026, EEEE, MMMM d writes Friday, September 18, and h:mm a writes 3:30 PM. The full set of letters is java.time's, for the rare case these don't cover.

Style​

Writes the moment the way Locale writes dates and times, with a Date Style and a Time Style from Short to Full, or None to leave one out. A Medium date and a Short time in English (United States) write Sep 18, 2026, 3:30 PM.

Part​

Writes one part of the moment as a number, for a condition or a calculation: the year, the quarter (1 to 4), the month (1 to 12), the day of the month, week, or year, the hour (0 to 23), the minute, or the ISO week. The day of the week is 1 for Monday through 7 for Sunday. For a name, such as Friday, use Pattern instead.

Time Between​

Writes the time between the moment and As Of as a whole number of a Unit, rounded toward zero. Since is how long ago the moment was, such as the days since content was last modified, and Until is how long until it comes, such as the days until an issue is due; a moment the other way is negative. Leave As Of blank to measure from now, the moment the mapping is resolved, or give it a variable reference to another timestamp, in any shape Automatic reads; one with no zone of its own is read in Time Zone. Days, months, and years follow the calendar of Time Zone.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.