Hello,
I record in my database the date as a timestamp, but in a BIGINT column.
So my code is like this:
Code:
//--- Retrieve the date as tmstamp
Date tm = new Date();
Datebdd = tm.getTime();
Then I try a query on it, but here is the problem. The problem is when I want to retrieve and display above what is recorded in the database.
I did this but it does not work:
Code:
//--- Declaration date formatting
dtfrm dtfrm = dateFormatter.getDateTimeInstance(dtfrm.LONG, dtfrm.SHORT, Local.FRANCE);
//--- Recovery after the date the application
String = dt dateFormatter.format(resultsNewCD.getLong("datebdd"));
I think I have a problem in retrieving the timestamp.
Bookmarks