Skip to content

Format Date

What it does: Converts dates into different display formats for user interfaces, reports, and data export.

Perfect for: User-friendly displays • Report generation • API formatting • Localization

  • Change date formats - Convert between different date string formats
  • Localize dates - Display dates in different languages and regions
  • Custom patterns - Create your own date format patterns
  • Timezone conversion - Apply timezone changes during formatting
Format Date conversion illustration
graph LR
    A[Raw Date] --> B[Format Date]
    B --> C[Formatted Display]

    style A fill:#e1f5fe
    style B fill:#e8f5e8
    style C fill:#f3e5f5

Simple process: Raw Date → Format Date → User-friendly display

  • User Friendly: Convert 2024-01-15T14:30:00Z to “January 15, 2024 at 2:30 PM”.
  • Short Date: Convert it to “1/15/24”.
  • Formal: Convert to “Monday, January 15, 2024”.
  • Standard (ISO): Convert “January 15, 2024” back to machine-readable “2024-01-15”.
PresetExample OutputBest For
"human"”January 15, 2024 at 2:30 PM”User interfaces
"short"”1/15/24”Compact displays
"medium"”Jan 15, 2024”Reports
"long"”January 15, 2024”Formal documents
"ISO"”2024-01-15T14:30:45Z”APIs and databases
"date_only"”2024-01-15”Date without time
"time_only"”2:30 PM”Time without date

Create your own formats using these tokens:

TokenDescriptionExample
YYYY4-digit year2024
MM2-digit month01
DD2-digit day15
MMMMFull month nameJanuary
MMMShort month nameJan
ddddFull day nameMonday
HH24-hour format14
hh12-hour format02
mmMinutes30
AAM/PMPM

Example custom pattern:

{
"output_format": "dddd, MMMM D, YYYY [at] h:mm A"
}

Result: “Monday, January 15, 2024 at 2:30 PM”

English (US):

"January 15, 2024"

French:

"15 janvier 2024"

Spanish:

"15 de enero de 2024"

German:

"15. Januar 2024"

User interfaces - Display dates in a friendly format for users Reports and exports - Format dates consistently across documents API responses - Convert dates to required formats for external services Multi-language apps - Show dates in user’s preferred language

Format not working: Check that your pattern tokens are correct (YYYY not yyyy) Wrong language: Specify the locale parameter for non-English formats Timezone issues: Set timezone parameter if dates appear in wrong time zone

Related nodes: Extract Part Of A DateGet Current DateEdit Fields

Common workflows: Report GenerationUser Interface DisplayMulti-language Apps

Learn more: Date Handling GuideLocalization Patterns