Skip to content

formatDate

formatDate(date?, locale?, options?): string

Formats a Date object, ISO date string, or timestamp into localized date string. e.g., “2026-07-22T10:00:00Z” -> “22/07/2026”

string | number | Date | null

string = 'vi-VN'

DateTimeFormatOptions

string