File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date Problem

 
Shunmu U
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Oracle as the DB. When I fetch any date column from a result set(using getDate() method), I get it displayed in YYYY-MM-DD format. I use the DD-MM-YYYY format to insert into the DB & the inserted date is displayed properly if a select query is done in SQL Plus.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33719
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the SimpleDateFormat class. You can display the date in any format you want when you get it back.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic