UNPKG

brazilian-values

Version:

Validates and formats brazilian values, like money (BRL), CPF, CNPJ, dates etc.

11 lines (10 loc) 329 B
/** * Formats a Date instance to brazilian format of date and time, DD/MM/YYYY HH:mm. * @example ```js * formatToDateTime(new Date(2002, 7, 21, 18, 30)) * //=> '21/08/2002 18:30' * ``` * @param value - A Date instance. */ declare const formatToDateTime: (value: Date) => string; export default formatToDateTime;