File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes Data Type Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Data Type Date" Watch "Data Type Date" New topic

Data Type Date

Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
Hi Experts,

I am working on creating table structure for my application. There are some date fields that would not have time with them in the data. I want to ask you guys whether we should take Date date type for this type of column or we should prefer Varchar2.

Thanks for all your help in advance!!!

Warm Regards,
Patricia samuel
Agador Paloi
Ranch Hand

Joined: Jan 24, 2006
Posts: 118
Always use Date for dates regardless if you are interested in the time or not.

I agree. Here's the link:
subject: Data Type Date
It's not a secret anymore!