Date & Time

Manipulate date and time values.

Built inSource

How it fits in a workflow

Date & Time (data.dateTime) is a built-in data step included with every zerodot server—no package install required. Connect it after a trigger or any earlier step on the canvas.

Supported operations

  • Get the current date
  • Add time to a date
  • Subtract time from a date
  • Round a date to the start
  • Get the difference between dates
  • Format a date
  • Convert a date to a timestamp

Options

  • actionstring

    nowaddsubtractstartOfdifferenceformattoTimestamp

    Starts as "format"

  • datestring

    Starts as "{{ $input.date }}"

  • otherstring
  • amountnumber

    Starts as 1

  • unitstring

    secondsminuteshoursdaysweeksmonthsyears

    Starts as "days"

  • patternstring

    Starts as "YYYY-MM-DD HH:mm:ss"

  • outputFieldstring

    Starts as "result"

Guides and related hubs