What is the date format to use with open office database version 3.3
Upon trying the following query it is showing
java.sql.SQLDataException: data exception: invalid datetime format
the query i used is
int status=stmt.executeUpdate("insert into \"Emp_Leave\" values(9876321,'8-9-11','9-9-11','pay','grant')");
here Emp_leave is the table in the database:
First column : EmpID ; Number second column: StartDate:Date Third column : LastDate : Date Fourth column: Type:String Fifth column : comments:String
Assuming this is an internal [HSQLDB] database, I think you’ll need to specify ‘2011-09-09’:
(from HSQLDB Insert reference)