This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
in my application i am using JDBC ODBC bridge to connect to the SQL server database.its a JSP appication. when i insert date to database it gets inserted in the format of mm/dd/yy but when i display it in the next page through resultset using getString method it displayes in the format of yy/mm/dd. is there any method by which i can convert date in the format of mm/dd/yy.
Sri Ram
Ranch Hand
Joined: Oct 03, 2005
Posts: 118
posted
0
Originally posted by sanjay vishwas: in my application i am using JDBC ODBC bridge to connect to the SQL server database.its a JSP appication. when i insert date to database it gets inserted in the format of mm/dd/yy but when i display it in the next page through resultset using getString method it displayes in the format of yy/mm/dd. is there any method by which i can convert date in the format of mm/dd/yy.
Use DateFormat Class to change the format. Then display it in Screen.