Yep, I figured out this later... the solution I found is to create a
subclass from Date, override the toString() method and create a custom
convertion between the SQL DATE type and my CustomDate java class.
I mean I had no interest on manipulating the date, i just wanted to have
it in a String in order to store it in a presentation bean and show it
in the "latin" way. This is the simplest reformatting I could think
about. :)


On Thu, 2004-07-01 at 20:37, Guillaume Nodet wrote:
> > 
> > When I obtain a date throw OJB its format changes from the original
> > configured in the DB. I mean my postgres DB is set to show dates
> > in a "dd/mm/yyyy" format an OJB shows a "yyyy-mm-dd" format.
> > Is there anyway to configure OJB to work with a particular date format
> > or do I have to do this through Java "manually" ?
> > 
> > Thanks in advance!
> > 
> 
> OJB does not format date by itself if you use columns of type date
> in your database. It will only work with the "real" date, not the
> display string for this date. So when you retrieve the date and want
> to display it, it is up to you to use the format you want.
> 
> Guillaume Nodet
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Saludos,

Martin I. Levi

Centre Tecnol�gic de Transferenci�ncia de Calor
Universitat Polit�cnica de Catalunya
www.cttc.upc.edu


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to