File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes retrieve date Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "retrieve date " Watch "retrieve date " New topic
Author

retrieve date

vicky malhotra
Greenhorn

Joined: Feb 05, 2005
Posts: 16
Hi!

I have an application wherein i insert some records into the database. i also have a field called date which is date YEAR TO YEAR (Informix). So it takes only the year. But now i need the day and month also. Is there any way by which i can retrieve the day and month when these records were inserted. If i simply alter the table and convert this date to date YEAR TO DAY, then it makes the day n month as 1 by default.

Please if any one has any idea, reply soon.

Thanks

[Bear edit: not so urgent]
[ March 21, 2005: Message edited by: Bear Bibeault ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26152
    
  66

Vicky,
Are there any database logs that you could look at? That's a long shot, but it's all I can think of. A database doesn't usually store more precision than you tell it to.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
vicky malhotra
Greenhorn

Joined: Feb 05, 2005
Posts: 16
Hi Jeanne,

i do have the application logs and i can take the date from there, but not all logs are there. So i was looking if the DB does store the date of inserted records.

Anyways, thanx.
 
jQuery in Action, 2nd edition
 
subject: retrieve date
 
Similar Threads
How to insert date into database?
Retrive Month and Year
Parsing Date Values for Database Search
Date recognition from String
SQL Show Previous Month Date Question