Title

Sunday, 18 January 2015

Change date output format


I'm using H2 db in my java application and i need to get the date from it. Everything is ok, but wneh i have 1-digit number of day or month, it gives me this format 2014-4-8. Is it possile to get something like this (2014-04-08), with zeros without parsing it and formatting via the application?

Answer

No comments:

Post a Comment