Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6741413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:43:19+00:00 2026-05-26T11:43:19+00:00

What is the date format to use with open office database version 3.3 Upon

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:43:20+00:00Added an answer on May 26, 2026 at 11:43 am

    Assuming this is an internal [HSQLDB] database, I think you’ll need to specify ‘2011-09-09’:

    A DATE literal starts and ends with ‘ (singlequote), the format is yyyy-mm-dd (see java.sql.Date)

    (from HSQLDB Insert reference)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Short Question: What's the best date format to use in SQL Server? Long Explanation:
I have to use a custom date format in Java. It contains microseconds although
I'd like to use date time format string (possibly UTC) which is understandable and
What format do I use for Date/Time when writing to an XML file using
Does anybody know which date format is to be used, trying to create a
I have the following date format: 2010-04-15 23:59:59 How would I go about converting
I am trying to use the following code, which I have not been able
I am trying to insert a row in ms-sql table using the following code
I am using simple date format in my app in following way in the
I am trying to modify the date format displayed in a custom template using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.