Martin Bechtle wrote:Allright... well a Date object has no format in Java. It only gets a format when it's transformed into a String or parsed from a String. So you have to find where in your code the date gets printed and use the code I gave you there.
I don't understand that flow.
So, you ask me to add :
in my code.
And then, I make it like:
I change your
to my String
.
but, because it's String, on the
, it's need Date Type. I'm making it to
So, I add the
The result, it's Error.
Actually, I want to SELECT data by Date.
In the table of DB, the type Date is Date (MM/dd/yyyy).
and I use Native SQL in My Hibernate, like :
My Service source code, is:
and the format date is my Controller.
I'm not yet found to solved that.