2

I am editing an existing node of content type event, and am trying to update the Date using the date pop up. However, no matter what date I select I get the The value in

"Date is not a valid date"

error.

The same issue appears when I try and add a new node with the same content type...

Any suggestions?

  • please expand details – monymirza Mar 22 '13 at 5:48
  • 1
    Event when we declare one field is Date type but there are several kinds of Date : Date, Date(ISO format), Date(Unix timestamp). Maybe you should change to another types to test. For me. I got the painful experience in contest module for this problem. – Stone Vo Mar 22 '13 at 6:12
  • As everyone said, the date pop is submitting different format of date and the date field is expecting different format. However by default the popup should work unless you did any changes. Can you please provide more information on which popup plugin you're using – Mathankumar Mar 28 '13 at 4:22
  • Thanks @Mathankumar This is the one I am using: name = Date Popup description = Enables jquery popup calendars and time entry widgets for selecting dates and times. dependencies[] = date_api package = Date/Time core = 7.x configure = admin/config/date/date_popup stylesheets[all][] = themes/datepicker.1.7.css ; Information added by drupal.org packaging script on 2012-08-13 version = "7.x-2.6" core = "7.x" project = "date" datestamp = "1344850024" – kine456 Mar 28 '13 at 4:59
1

The latest dev version of clientside validation contains a fix to support more formats, so you can give it a try

0

I found that this error is definitely tied directly to the date popup widget. As a quick fix try changing your fields' widget type to select list.

  • You are right @squarecandy Changing the widget tpe to select list work. What do I need to do to fix the pop up widget? – kine456 Mar 25 '13 at 4:01
0

This is a known issue tied to the date string formats you defined. As in the issue, changing the 'short' format definition from dd.mm.YYYY to the php date() string format of d.m.Y appears to have corrected the problem.

  • Thanks @Triskelion My settings are as follows: Manage fields More settings and values Date entry Date entry options 02/04/2013 - 9:40:59pm Manage display Short (02/04/2013 - 9:39pm) However, I am still getting the "The value in Date is not a valid date." error. What am I doing wrong? – kine456 Apr 1 '13 at 23:09
0

If you have installed Clientside Validation module disable it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.