leandromoraesrj / sincad-backend

PROJETO BASE DE EXEMPLO USANDO AS MELHORES PRATICAS DE DESENVOLVIMENTO
0 stars 0 forks source link

Testar Mascara/Formato de data, valor numérico e parâmetro #17

Open leandromoraesrj opened 2 years ago

leandromoraesrj commented 2 years ago

JAVA JSON StringBuilder MessageFormat.format

leandromoraesrj commented 2 years ago

Para usar o formatador de texto: MessageFormat.format("Tamanho inválido da linha: {0}", e.getMessage())

Formatar um Date:

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
sdf.format(instance.getData())