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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -