UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

15 lines (14 loc) 488 B
/** * * @param dateString - A date in string format * @param locale - A string depicting the locale * @param options - DateTimeFormatOptions * @returns A localized date * * @example * localizeDateString('1970-01-01', 'en-US') * // 'January 01, 1970' * localizeDateString('1970-01-01', 'en-US', { month: 'short' }) * // 'Jan 01, 1970' */ export declare const localizeDateString: (dateString: string, locale: string, options?: Intl.DateTimeFormatOptions) => string | undefined;