This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes DateFormat Java 2 Oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "DateFormat Java 2 Oracle" Watch "DateFormat Java 2 Oracle" New topic

DateFormat Java 2 Oracle

Reggie McDougal
Ranch Hand

Joined: Sep 27, 2004
Posts: 69
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?

You can never drink too much
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
you can use java.text.SimpleDateFormat class. refer to docs.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

This is not a servlet question, moving to Java in General (beginner)
I agree. Here's the link:
subject: DateFormat Java 2 Oracle