---
title: "Format Date"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/datetime/formatdate
markdown: https://docs.nodetool.ai/nodes/lib/datetime/formatdate.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/datetime/formatdate.md
---

# Format Date

**Type:** `lib.datetime.Format`

**Namespace:** `lib.datetime`

## Description

Parse a date string/number/Date and format it. Supports tokens YYYY, MM, DD, HH, mm, ss, SSS, Z. Use [brackets] for literals.
    date, format, parse, strftime

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| date | `any` | Date string, number (epoch ms), or Date. | `` |
| pattern | `str` | Format pattern (YYYY, MM, DD, HH, mm, ss, SSS, Z). | `YYYY-MM-DD HH:mm:ss` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| formatted | `str` |  |
| iso | `str` |  |
| epoch_ms | `int` |  |

## Related Nodes

Browse other nodes in the [lib.datetime](./) namespace.
