This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DateFormat Java 2 Oracle  RSS feed

 
Reggie McDougal
Ranch Hand
Posts: 69
  • 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
  • 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
  • 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
Boost this thread!