Hi,
Not a problem.
It's actually quite simple : quick example
Date date = new Date();
DateFormat frenchFormat = DateFormat.getDateInstance(DateFormat.SHORT,
Locale.FRANCE);
System.out.println(frenchFormat.format(date));
DateFormat usFormat = DateFormat.getDateInstance(DateFormat.SHORT,
Locale.US);
System.out.println(usFormat.format(date));
DateFormat jpFormat = DateFormat.getDateInstance(DateFormat.SHORT,
Locale.JAPAN);
System.out.println(jpFormat.format(date));
Which, today, gave me the following output :
14/11/03
11/14/03
03/11/14
Cheers,
Charles.
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 14 November 2003 15:40
> To: [EMAIL PROTECTED]
> Subject: RE: Date: how to retrieve them in european format?
>
>
> Hi,
>
> I use java.sql.Date class for date attributes.
> I'll use java.text.DateFormat.
>
> Sorry, maybe the wrong list for this question (more a Java
> coding question).
>
> Thanks
> Sylvain
>
> > -----Message d'origine-----
> > De: Charles Anthony [mailto:[EMAIL PROTECTED]
> > Date: vendredi, 14. novembre 2003 16:26
> > �: 'OJB Users List'
> > Objet: RE: Date: how to retrieve them in european format?
> >
> >
> > Hi Sylvain,
> >
> > It's probably a language misunderstanding, but : which dates,
> > where, and why
> > do you think they are in the wrong format ?
> >
> > A little more information on your problem would be helpful
> - but, as a
> > pointer, if you have a java.util.Date (or a java.sql.Date)
> > attribute on an
> > object and you want to format it as a String for output, you
> > should use a
> > java.text.DateFormat to control the output.
> >
> > Cheers,
> > Charles.
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > > Sent: 14 November 2003 15:27
> > > To: [EMAIL PROTECTED]
> > > Subject: Date: how to retrieve them in european format?
> > >
> > >
> > > Hello,
> > >
> > > I'm using PB and when I retrieve dates the format is yyyy/mm/dd.
> > >
> > > Is it a way to define/transform the dates to have the format
> > > dd/mm/yyyy (european)?
> > >
> > > Thanks
> > > Regards
> > > Sylvain
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ___________________________________________________________
> > HPD Software Ltd. - Helping Business Finance Business
> > Email terms and conditions: www.hpdsoftware.com/disclaimer
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
___________________________________________________________
HPD Software Ltd. - Helping Business Finance Business
Email terms and conditions: www.hpdsoftware.com/disclaimer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]