Format a date
FreeLogic@rabbinatix/format-a-date by Rabbinatixupdated Oct 4, 2026
Writes a date your way: `Sunday 4 October 2026`, `04/10/2026 7:05 PM`…
Patterns use yyyy MM dd HH mm, names (MMMM, EEEE), 12-hour time (h a) and 'quoted' text. Times with an offset are converted to UTC.
Shows: Format Date.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Format a date. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
date: Text
pattern: Text
Outputs
text: Text
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 3 outputs. step 1 of 3
Format a date
date
pattern
Format Date, Date and time. 2 inputs, 1 output. step 2 of 3
Format Date
date
pattern
result
Return, Input / output. 2 inputs, 0 outputs. step 3 of 3
Return
text
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 3/3 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| Long form | {"date":"2026-10-04T09:30:00Z","pattern":"EEEE d MMMM yyyy"} | {"text":"Sunday 4 October 2026"} | |
| With an offset, 12-hour | {"date":"2026-10-04T21:05:00+02:00","pattern":"dd/MM/yyyy h:mm a"} | {"text":"04/10/2026 7:05 PM"} | |
| Quoted text | {"date":"2026-10-04","pattern":"'Week of' MMM d"} | {"text":"Week of Oct 4"} |
Try it
Versions
In this package
Format a date (entry)
