跳转到内容
Agentic Workflowdocs
v0.8.2免费安装

节点 / builtin / datatransformation / datetime

Format Date

Format a date

数据 扩展程序网页应用

此内容尚不支持你的语言。

Turn a date into text in a fixed format, or into a Unix timestamp.

Format Date reads Date to format and writes it as text in the field named by Output field name, using one of these Format choices:

Format Example for 5 March 2026
MM/DD/YYYY 03/05/2026
YYYY/MM/DD 2026/03/05
MMMM DD YYYY March 05 2026
MM-DD-YYYY 03-05-2026
YYYY-MM-DD 2026-03-05
DD/MM/YYYY 05/03/2026
DD-MM-YYYY 05-03-2026
Unix Timestamp Seconds since 1 January 1970, for example 1772668800 at midnight UTC
Unix MS Timestamp Milliseconds since 1 January 1970

Dates are formatted in your computer’s local time zone. Month names are in English. The result is always text, including the timestamps.

  • Show a date in a message, a sheet or a notification in a readable way.
  • Send a date to an API that expects YYYY-MM-DD or a Unix timestamp.
  • Build file names that sort by date, such as report-2026-03-05.
设置项类型作用
Date to format (必填)Date and timeThe date to format.
Format (必填)ChoiceThe format to use for the date. Options: MM/DD/YYYY, YYYY/MM/DD, MMMM DD YYYY, MM-DD-YYYY, YYYY-MM-DD, DD/MM/YYYY, DD-MM-YYYY, Unix Timestamp, Unix MS Timestamp.
Output field name (必填)TextThe name of the output field.
Options GroupThe options for the node.
Options › Include input fields ToggleWhether to include the input fields in the output. 默认值:Off

Date to format accepts a picked date or an expression such as {{ $input.createdAt }}. Only the listed formats are available; there is no free-form pattern or time-of-day format.

  • Output

The item holds the formatted text under Output field name, for example { day: "2026-03-05" }. Turn on Include input fields to keep the incoming fields too.

None. This node needs no connection and has no slots for other nodes.

Save selected text into a dated file:

  1. Context Menu trigger, Menu Contexts Selection.
  2. Get Current Date, Output field name now, Include input fields on.
  3. Format Date, Date to format {{ $input.now }}, Format YYYY-MM-DD, Output field name day, Include input fields on.
  4. Save as File, Content {{ $input.selectionText }}, File name notes-{{ $input.day }}, File type txt.
  • The output says “Invalid Date”. The incoming value is not a date the browser can read. Use an ISO date such as 2026-03-05 or 2026-03-05T09:30:00Z.
  • The date is one day off. A UTC time near midnight moved to the previous or next day in your local time zone. Include the time and time zone in the input.
  • A later number comparison fails on the timestamp. The timestamp formats return text, not a number. Compare it as text, or set the field type to Number in the comparing node.
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Format Date”