Docs
NodesProcessing Nodes
Edit Page on GitHub

Date to Number (Timestamp)

Converts a date object or string into a numeric Unix timestamp (milliseconds since epoch).

datenumbertimestampEasy0
Date to Number (Timestamp) Node Screenshot

Description

The Date to Number node converts a date value into a numerical representation (typically a Unix timestamp). This allows dates to be used in mathematical operations, comparisons, or other processes that require numerical values.

Common Use Cases

  • Calculating time differences between dates
  • Sorting or comparing dates in numerical form
  • Converting dates for use in mathematical operations
  • Preparing date values for storage or transmission formats that require numbers

Inputs

The input connections this node accepts:

NameDescriptionTypeFlowThe flow of the workflowFlowDateDate to convert (e.g., Date object, ISO string)Date

Outputs

The output connections this node provides:

NameDescriptionTypeNumberThe number of milliseconds since the Unix epoch (timestamp)NumberToolThe tool version of this node, to be used by LLMsTool

Fields

The configurable fields this node provides:

NameDescriptionTypeDateDate to convertValue: Enter date here...Date

Last updated on