File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes JDBC SQL server date format problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC SQL server date format problem" Watch "JDBC SQL server date format problem" New topic

JDBC SQL server date format problem

sanjay vishwas

Joined: Nov 16, 2005
Posts: 2
in my application i am using JDBC ODBC bridge to connect to the SQL server database.its a JSP appication.
when i insert date from my application to database using 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 can any one help me
Ram Mohan

Joined: Oct 21, 2005
Posts: 26
Whats your need,

String into date format or date into string.

Ram Mohan
I agree. Here's the link:
subject: JDBC SQL server date format problem
It's not a secret anymore!