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

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -