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