java - Change date output format -


I am using H2DB in my Java application and I need to get its date. Everything is fine, but I got a 1-digit number or a month's number, it gives me a format of 2014-4-8. Is it possible to achieve something like this (2014-04-08), without zero and without formatting through the application?

If you use struts2 at the front end. Belo tags can be useful to you

  & lt; S: date name = "somedate" format = "EEE, MMM dd, Yyyy" />    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

c# - Call function from DLL -