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”
Parameters
Section titled “Parameters”string | number | Date | null
locale?
Section titled “locale?”string = 'vi-VN'
options?
Section titled “options?”DateTimeFormatOptions
Returns
Section titled “Returns”string