Hello
Are there any patterns or known ways of converting a date from a string representation to a numerical representation and vice versa?
Background:
I am using an Apache Derby database as the persistence ...
In my Sql, I want to group by some columns having some conditions , so for other column, they are date type. I just want to manually return null for ...
java.util.Date today = new java.util.Date(); java.sql.Date sqlToday = new java.sql.Date(today.getTime()); Query = java.beans.Beans.isDesignTime() ? null : MyDatabasePUEntityManager.createQuery("SELECT b FROM MyTable b WHERE b.date < "+sqlToday);
Hello, I can easily save and retrieve a date from an ejb application (creating a derby table with Date as one of the fields - automatically generating the entity class, -creating a session facade bean and creating a client) - but if the date also contains a time the time doesn't seemed to get stored in the table. I used DateFormat ...
I've been searching on this for a few days but I can't implement a working method of comparing a regular date to a date I have in a DERBY database. This is done in NB so even though preparedstatement might fix it, I have no idea how to implement that in NB and want to stick to a regular statement. Whats ...