Skip to content

ofacActionDate ​

Import from: @xbbg/xnews, @xbbg/xnews/catalog

ofacActionDate(segment): string

Defined in: src/sources/ofac.urls.ts (declaration: sources/ofac.urls.d.ts:27)

Converts OFAC's YYYYMMDD path segment to an ISO date. Returns undefined for segments that are well-formed digits but not real dates (20261340), so a template change cannot mint a nonsense publication date.

Parameters ​

segment ​

string

Returns ​

string

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.