With this part of the code, I was able to take the value related to day, month and year, however value came as an element of the array, I want to know a way to join these elements of the array making a single element.
Value I expect: dd/mm/yyyy
2
It wouldn’t be enough to do var dataVerificacao = \${dia}/${mes}/${yearAtual}``?
If you want to format the date, you can just dataAtual.toLocaleDateString('pt-BR') (or choose some of the link options indicated above in the blue box). To concatenate values in general, use the suggested method in the comment above - see more details about this syntax here
It wouldn’t be enough to do
var dataVerificacao = \
${dia}/${mes}/${yearAtual}``?– Woss
If you want to format the date, you can just
dataAtual.toLocaleDateString('pt-BR')
(or choose some of the link options indicated above in the blue box). To concatenate values in general, use the suggested method in the comment above - see more details about this syntax here– hkotsubo