NewIntroducing Arbiter AI. Experience the boundless capabilities of AI, right inside Arbiter. Check it out
  • Intro
    • Automations
    • Complex Decision-Making
    • Integrations
  • Docs
  • Support
  • Pricing
Try Arbiter

    Introduction

  • What is Arbiter?
    • Overview
    • Automations and Integrations
    • Decision-Making Software
    • Overview
    • Configure the Start Node
    • Connect to an HTTP API
    • Use Processor for Math Calculations
    • Add Conditions with Rule Node
    • Output Data and Workflow Tests
  • Concepts
  • Workflows

  • Projects
    • Intro
    • Workflow data state
    • Result schema
    • Canvas actions
    • Start node
    • Connector node
    • Rule node
    • Processor node
    • Workflow node
    • Setter node
    • Intro
    • Http request
    • Intro
      • Overview
        • Overview
        • Text
        • Date and Time
        • Math
        • Overview
        • Text Template
        • Find
        • Filter
  • Variables
    • Checkpoints
    • Workflows status
  • Data Types
  • Input Parameters Form
  • Arbiter AI
  • Visibility and Audit
  • Troubleshoot & FAQ

  • Roadmap
  • Changelog
Type '/' to Search

•Date and Time

•DateTimeNow

Gets the current UTC date time. Uses specific format if provided.

•Input parameters

  • format (Text: <optional,default:ISO8601>) - Date and time formatting. e.g. 'MM-dd-yyyy HH:mm'.

•Output parameters

  • now (Text) - Returns a text value that represents the current date and/or time.

•Example

format: 'MM-dd-yyyy HH:mm'

output: { 'now': '12-07-2022 06:30' }
format: 'MM-dd-yyyy HH:mm'
output: { 'now': '12-07-2022 06:30' }

•DateTimeParse

Converts the string representation of a date and time to its ISO format equivalent using the specified format. The format of the string representation must match a specified format exactly.

•Input parameters

  • dt_string (Text: <required>) - Date and time value.
  • format (Text: <optional>) - Date and time formatting. e.g. 'MM-dd-yyyy HH:mm'.

•Output parameters

  • date (Text) - Returns an ISO formatted date or nil.

•Example

dt_string: '22 12 7 05:57:00'
format: 'yy MM d HH:mm:ss'

output: { 'date': '2022-12-07T05:57:00.000Z' }
dt_string: '22 12 7 05:57:00'format: 'yy MM d HH:mm:ss'
output: { 'date': '2022-12-07T05:57:00.000Z' }

•DateTimeParse

Used to format DateTime strings.

•Input parameters

  • date (Text: <required>) - Date and time value.
  • format (Text: <optional>) - Date and time formatting. e.g. 'MM-dd-yyyy HH:mm'.

•Output parameters

  • date (Text) - Returns an ISO formatted date or nil.

•Example

date: '2022-12-07 00:00:00'
format: 'yyyyMMdd'

output: { 'date': '20221207' }
date: '2022-12-07 00:00:00'format: 'yyyyMMdd'
output: { 'date': '20221207' }

•Formats

You could use the following formatting rules(date and time functions are written in Swift). Experiment and play around with the dates and times here.

•Year

CharactersExampleDescription
y2022Year, no padding
yy22Year, two digits (padding with a zero if necessary)
yyyy2022Year, minimum of four digits (padding with zeros if necessary)

•Quarter

CharactersExampleDescription
Q4The quarter of the year. Use QQ if you want zero padding.
QQQQ4Quarter including "Q"
QQQQ4th quarterQuarter spelled out

•Month

CharactersExampleDescription
M12The numeric month of the year. A single M will use '1' for January.
MM12The numeric month of the year. A double M will use '01' for January.
MMMDecThe shorthand name of the month
MMMMDecemberFull name of the month
MMMMMDNarrow name of the month

•Month

CharactersExampleDescription
M12The numeric month of the year. A single M will use '1' for January.
MM12The numeric month of the year. A double M will use '01' for January.
MMMDecThe shorthand name of the month
MMMMDecemberFull name of the month
MMMMMDNarrow name of the month

•Day

CharactersExampleDescription
d14The day of the month. A single d will use 1 for January 1st.
dd14The day of the month. A double d will use 01 for January 1st.
F2(numeric) The day of week in the month.
ETueThe abbreviation for the day of the week
EEEETuesdayThe wide name of the day of the week
EEEEETThe narrow day of week
EEEEEETuThe short day of week

•Hour

CharactersExampleDescription
h4The 12-hour hour.
hh04The 12-hour hour padding with a zero if there is only 1 digit
H16The 24-hour hour.
HH16The 24-hour hour padding with a zero if there is only 1 digit.
aPMAM / PM for 12-hour time formats

•Minute

CharactersExampleDescription
m35The minute, with no padding for zeroes.
mm35The minute with zero padding.

•Second

CharactersExampleDescription
s8The seconds, with no padding for zeroes.
ss08The seconds with zero padding.
SSS123The milliseconds.

•Second

CharactersExampleDescription
zzzCSTThe 3 letter name of the time zone. Falls back to GMT-08:00 (hour offset) if the name is not known.
zzzzCentral Standard TimeThe expanded time zone name, falls back to GMT-08:00 (hour offset) if name is not known.
ZZZZCST-06:00Time zone with abbreviation and offset
Z-0600RFC 822 GMT format. Can also match a literal Z for Zulu (UTC) time.
ZZZZZ-06:00ISO 8601 time zone format
DocsContactLegalCookies
©2022-2023 Arbiter Technologies Ltd. All rights reserved.