Posts by Priscilla Guimarães • 11 points
1 post
-
1
votes1
answer79
viewsQ: Field returning date in Brazilian standard and the other in American in typescript. How to validate?
I have a field validation problem, in which when the date returns from my API in American format is made the conversion to Brazilian as below: formatDate(date: string) { if (!date) { return '-' }…