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

  • Home
  • SEARCH
  • 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 8198383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:56:23+00:00 2026-06-07T05:56:23+00:00

This is the second week trying to find an answer to my problem… everything

  • 0

This is the second week trying to find an answer to my problem… everything fine works except when inserting a date field to database problem… I am sure someone can help me! THANK YOU !

Database column is: campstart and it is a “Timestamp without time zone”

++++++++++ JSP page with the following:

… (some code) // Formatting the date:

SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm");

… (some code) // getting input from webpage

<input name="start" type="text" value="<%= defaultCampaign.getCampstart() != null ? dateFormat.format(defaultCampaign.getCampstart()) : dateFormat.format(new java.util.Date()) %>">

… (more code)

++++++++++ On Java:

… (some code) // declaring variable

private java.util.Date campstart = null;

… (some code) // assigning data

public void setCampstart(java.util.Date aCampstart) {   
this.campstart = aCampstart;  } 

public java.util.Date getCampstart() {
  return this.campstart; }

… (some code) // writing to PostgreSQL +below is the line with problems+

pst.setTimestamp(10, new Timestamp(this.getCampstart().getTime()));

… (more code)

+++++++++

It works fine when I change the code line to the following (for debugging):

pst.setTimestamp(10, new Timestamp(new java.util.Date().getTime()));

The date Insert works perfectly, it writes to Database without errors. But, when I change the code to insert the user date, it gives me the following error:

org.apache.jasper.JasperException: Unable to convert string “04/07/2012 19:12” to class “java.util.Date” for attribute “campstart”: Property Editor not registered with the PropertyEditorManager

Can someone please help me to figure out what I am doing wrong…

THANK YOU !!

Rob.

  • 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-06-07T05:56:24+00:00Added an answer on June 7, 2026 at 5:56 am

    Got it to work when I changed the format on the date. For some reason it was sending it on the month like “7” instead of “07”.

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

Sidebar

Related Questions

I'm having a syntax error on the second line of this code, I'm trying
I'm playing around with the jQuery Week Calendar and am trying to get this
This is my second week of learning python and I got an homework assignment
this is my second week of learning SQL it might be an easy question
This is driving me nuts, I've tried everything for about a week. Hope some
Ive been trying to get this to work for the last week and cannot
How can I make this second struct work, when the first struct has a
Ok, I need something like this: datediff(second, date_one, date_two) < 1 dates are stored
This is my second attempt at this question . I made a mess of
This is my second question about clicking buttons in JavaScript but this one I'm

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.