mellodemelo Posted May 4, 2017 Share Posted May 4, 2017 Hi, I created a parameter as string and the person write 25/03/2017, I need that this date be transformed in 25 de março de 2017, so I did:$F{END_CIDADE} + ", ".concat(new SimpleDateFormat("dd 'de' MMMM 'de' yyyy", new Locale ("pt", "BR")).format(new SimpleDateFormat("dd/mm/yyyy").parse($P{parameter})).toLowerCase())+"."But the result was: 25 de janeiro de 2017Someone can help me? Link to comment Share on other sites More sharing options...
Solution szaharia Posted May 5, 2017 Solution Share Posted May 5, 2017 It may be a problem with the "dd/mm/yyyy" pattern, since 'mm' usually stands for minutes. Try to use "dd/MM/yyyy" instead. Link to comment Share on other sites More sharing options...
mellodemelo Posted May 5, 2017 Author Share Posted May 5, 2017 Hi @Shertage, you saved my life. It was driving me crazy!Than you very very much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now