Skip to content

formatDateTime

formatDateTime(date?, locale?): string

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

string | number | Date | null

string = 'vi-VN'

string