I'm having trouble formatting the birthday date in the format 2021-04-13T00:00:00.000Z the date is sent correctly, but after this formatting it always has 1 day less. Can anyone help?
export function formatDate(date): string { const dateInput = new Date(date); return new Intl.DateTimeFormat('pt-BR').format(dateInput);}