aspose file tools*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "DateFormat Java 2 Oracle" Watch "DateFormat Java 2 Oracle" New topic
Author

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.
thanks
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

This is not a servlet question, moving to Java in General (beginner)
 
jQuery in Action, 2nd edition
 
subject: DateFormat Java 2 Oracle