Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / August 2005

Tip: Looking for answers? Try searching our database.

convert sql date

Thread view: 
shoa - 22 Aug 2005 02:22 GMT
Hello

I have a sql Date with the format yyyy-MM-dd. To show the birthday date of a
staff in JTextField, I did as

birthdayTextField.setText(staff.getBirthdayDate().toString);  //I can get
1979-12-15

However, I want to display the date with the format of dd/MM/yyyy   // such
as 15/12/1979

It can be seen that I can use a normal way: get the last four numbers and
put in front.... and so on.

Any suggestion for a faster way to do this converter?
Thanks
S.Hoa
Andrew Thompson - 22 Aug 2005 03:08 GMT
(format dates)
> Any suggestion for a faster way to do this converter?

java.text.DateFormat

HTH

Signature

Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
"If no one out there understands, start your own revolution and cut out the
middle man."
Billy Bragg 'Waiting For The Great Leap Forward'



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.