Documentation Index Fetch the complete documentation index at: https://docs.spojit.com/llms.txt
Use this file to discover all available pages before exploring further.
The Date & Time connector provides operations for working with dates and times — formatting, parsing, timezone conversion, arithmetic, and comparisons.
No connection required — this utility connector works out of the box.
now — Get current date/time
Timezone (e.g., America/New_York). Defaults to UTC.
Output format. Defaults to ISO 8601.
Example request: { "timezone" : "America/New_York" , "format" : "YYYY-MM-DD HH:mm:ss" }
Example response: { "result" : "2025-06-15 14:30:22" }
format — Format date to string
parse — Parse date string
Parse a date string to ISO 8601 format. Expected input format (e.g., MM/DD/YYYY).
Timezone to interpret the date in. Defaults to UTC.
Example request: {
"date" : "15/03/2025 14:30" ,
"inputFormat" : "DD/MM/YYYY HH:mm" ,
"timezone" : "Europe/London"
}
Example response: { "iso" : "2025-03-15T14:30:00.000Z" }
add — Add duration to date
Amount to add (can be negative).
Unit: year, month, week, day, hour, minute, second, or millisecond.
Example request: { "date" : "2025-01-15T00:00:00Z" , "value" : 30 , "unit" : "day" }
Example response: { "iso" : "2025-02-14T00:00:00.000Z" }
subtract — Subtract duration from date
Unit: year, month, week, day, hour, minute, second, or millisecond.
Example request: { "date" : "2025-06-01T12:00:00Z" , "value" : 3 , "unit" : "month" }
Example response: { "iso" : "2025-03-01T12:00:00.000Z" }
diff — Difference between dates
Example request: {
"date1" : "2025-12-25T00:00:00Z" ,
"date2" : "2025-01-01T00:00:00Z" ,
"unit" : "day"
}
Example response: { "value" : 358 , "unit" : "day" }
timezone — Convert between timezones
Example request: {
"date" : "2025-06-15 09:00" ,
"from" : "America/New_York" ,
"to" : "Asia/Tokyo" ,
"format" : "YYYY-MM-DD HH:mm:ss Z"
}
Example response: { "result" : "2025-06-15 22:00:00 +09:00" }
start-of — Start of time period
Get the start of a year, month, week, day, hour, minute, or second. Unit: year, month, week, day, hour, minute, or second.
Example request: { "date" : "2025-06-15T14:30:00Z" , "unit" : "month" }
Example response: { "iso" : "2025-06-01T00:00:00.000Z" }
end-of — End of time period
Get the end of a year, month, week, day, hour, minute, or second. Unit: year, month, week, day, hour, minute, or second.
Example request: { "date" : "2025-06-15T14:30:00Z" , "unit" : "month" }
Example response: { "iso" : "2025-06-30T23:59:59.999Z" }
is-before — Check if before another date
Example request: {
"date" : "2025-01-15T00:00:00Z" ,
"compareTo" : "2025-06-01T00:00:00Z" ,
"unit" : "month"
}
Example response:
is-after — Check if after another date
Example request: {
"date" : "2025-12-01T00:00:00Z" ,
"compareTo" : "2025-06-01T00:00:00Z"
}
Example response:
is-between — Check if between two dates
Boundary inclusivity: (), [], [), or (].
Example request: {
"date" : "2025-06-15T00:00:00Z" ,
"start" : "2025-06-01T00:00:00Z" ,
"end" : "2025-06-30T23:59:59Z" ,
"inclusivity" : "[]"
}
Example response:
relative — Human-readable relative time
Returns strings like “2 hours ago” or “in 3 days”. Reference date (defaults to now).
Omit “ago” or “in” prefix/suffix.
Example request: {
"date" : "2025-06-10T00:00:00Z" ,
"from" : "2025-06-15T00:00:00Z"
}
Example response:
parts — Extract date components
unix — Convert to/from Unix timestamp
Date string or Unix timestamp.
true = date to timestamp, false = timestamp to date.
Use milliseconds instead of seconds.
Example request: { "value" : "2025-06-15T00:00:00Z" , "toUnix" : true }
Example response:
list-timezones — List timezone identifiers
Returns a list of common timezone identifiers. No parameters required. Example request: Example response: {
"timezones" : [
"UTC" ,
"America/New_York" ,
"America/Chicago" ,
"America/Denver" ,
"America/Los_Angeles" ,
"Europe/London" ,
"Europe/Paris" ,
"Asia/Tokyo" ,
"Australia/Sydney" ,
"Pacific/Auckland"
],
"count" : 26
}