Skip to content

formatDate

formatDate(value): string | undefined

Defined in: js-xbbg/src/dates.ts:88

Format a date-like value to YYYYMMDD (Bloomberg-native).

Accepts Date, ISO 8601 / Bloomberg-native strings, epoch ms, and any duck-typed Luxon-style { toJSDate(): Date }. Strict on ambiguous formats.

DateLike | null | undefined

string | undefined