Meaningless Drivel is fun!
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 Java Interview Guide this week in the Jobs Discussion 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
It's not a secret anymore!