java - Problem with Date format using an attribute Calendar with JPA -


i've problem using attribute calendar jpa:

@column(name = "date") @temporal(temporaltype.date) private calendar date; 

by default setted mm/dd/yyyy , need in dd/mm/yyyy, can me?

i've seen quiete easy date instead of calendar can't use it...

thx daniele

i think, format doesn't matter. neither calendar nor date have format them. tostring() method formats in default format.

would care elaborate,

  • what expected behaviour?
  • what getting?

[edited based on comment below]

whatever, comes browser comes string. so, having issue while converting string date or calendar. fix , after that.

happy coding. cheers.


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -