core / transform / schema v1
Date
Date math: now, add or subtract a duration, the difference between two dates, format, or compare. Can output a Unix timestamp or a ready Discord <t:…> tag for live countdowns.
Prerequisites
No connection prerequisite is declared for this node.
Parameters
| Parameter | Type | Description |
|---|---|---|
Operationoperation | select Required | Options: Now (now), Add (add), Subtract (subtract), Difference between two dates (diff), Format (format), Compare (compare) |
Datedate | text Conditionally required | The base date to work from. For Add/Subtract, leave it empty to use the CURRENT time, so “add {{option_duration}} minutes” needs nothing here.Field conditions{
"visible": {
"key": "operation",
"values": [
"add",
"subtract",
"diff",
"format",
"compare"
]
},
"required": {
"key": "operation",
"values": [
"diff",
"format",
"compare"
]
}
} |
Amountamount | text Conditionally required | How much to add or subtract. Accepts a plain number (7) or a variable like {{option_duration}}, pair it with the Unit below.Field conditions{
"visible": {
"key": "operation",
"values": [
"add",
"subtract"
]
},
"required": {
"key": "operation",
"values": [
"add",
"subtract"
]
}
} |
Unitunit | select Optional | Options: Seconds (seconds), Minutes (minutes), Hours (hours), Days (days), Weeks (weeks), Months (months), Years (years) Field conditions{
"visible": {
"key": "operation",
"values": [
"add",
"subtract",
"diff"
]
}
} |
Output asoutputFormat | select Optional | How the result comes out. Unix = a number for further math or Discord’s <t:…> syntax. “Discord timestamp” builds the whole <t:UNIX:style> tag for you. Paste {{result}} into a message and Discord shows a live, per-user localized time. Options: ISO date/time (default) (iso), Unix timestamp (seconds) (unix), Unix timestamp (milliseconds) (unix_ms), Discord timestamp <t:…> (live countdown) (discord) Field conditions{
"visible": {
"key": "operation",
"values": [
"now",
"add",
"subtract"
]
}
} |
Discord stylediscordStyle | select Optional | How Discord renders the timestamp. Options: Relative: “in 2 hours” / “3 days ago” (R), Short time: 4:30 PM (t), Long time: 4:30:00 PM (T), Short date: 07/09/2026 (d), Long date: July 9, 2026 (D), Short date & time: July 9, 2026 4:30 PM (f), Long date & time: Wednesday, July 9, 2026 4:30 PM (F) Field conditions{
"visible": {
"key": "outputFormat",
"values": [
"discord"
]
}
} |
Second datedate2 | text Conditionally required | Field conditions{
"visible": {
"key": "operation",
"values": [
"diff",
"compare"
]
},
"required": {
"key": "operation",
"values": [
"diff",
"compare"
]
}
} |
Comparisoncomparison | select Conditionally required | Options: is before (before), is after (after), is the same as (same) Field conditions{
"visible": {
"key": "operation",
"values": [
"compare"
]
},
"required": {
"key": "operation",
"values": [
"compare"
]
}
} |
Formatformat | text Optional | Tokens: YYYY MM DD HH mm ss (UTC).Field conditions{
"visible": {
"key": "operation",
"values": [
"format"
]
}
} |
Also publish asoutputAs | text Optional | Give this node's {{result}} output a name of your own (e.g. "winners"), so downstream nodes can reference {{winners}} directly. Handy when another node also publishes {{result}}, Noria would otherwise silently use whichever one ran last. {{result}} keeps working unchanged either way. |
Inputs and outputs
Inputs
execute- Execute (input)
Outputs
done- Done (output)result- Result (output)error- Error (output)
Output data schema
[
{
"key": "result",
"type": "any",
"label": "Result",
"description": "ISO text, Unix number, or Discord <t:…> tag. Depends on the Output format (diff/compare return a number/boolean)"
}
]Examples and troubleshooting have not yet been reviewed for this contract.
Version and compatibility
This reference follows the current authoring contract. Existing workflows retain their saved node revisions.
Contract identifier
bf23f97163431e3ba90c07ed47f646d0aebba85367c0d6e4f75e82731cda1b9e