• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DateFormat Java 2 Oracle

 
Reggie McDougal
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When saving sysdate to the database in this case oracle

when I get the date a recorde was created say..

> select to_char(create_dt, 'YYYYMMDD:HH24:MI:SS')

Does the Java API give me a way to compare the format from oracle with out haveing to re-invent the wheel?
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use java.text.SimpleDateFormat class. refer to docs.
thanks
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a servlet question, moving to Java in General (beginner)
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic