Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → Format Date

AI-generated

Summary

Format an input date string into a specified output format using the Plug Database Tools resource.

Inputs

  • toolCategory — Selects the category of tools available, defaulting to 'Documents' but here should be 'Dates / Values' for date formatting.
  • date (required) — The date string to format.
  • dateFormat (required) — The format in which to output the date, e.g., ISO or other patterns.
  • outputJsonProperty — The JSON property name where the formatted date result will be stored; defaults to 'date'.

Output shape

a JSON object containing the formatted date string under the specified output property key

The node returns a single JSON object per input item with the formatted date string stored in the chosen output JSON property.

Examples

Example 1: Format an ISO date string to a custom pattern

Set date to the input date string, dateFormat to the desired format string, and outputJsonProperty to store the result under a custom key.

Links

Discussion