close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Datepicker Issues

Thread began 8/21/2012 7:13 pm by Gary Young | Last modified 8/23/2012 9:30 pm by Gary Young | 445 views | 2 replies |

Gary Young

Datepicker Issues


I am having an issue with the datepicker inserted by CSS FB into my forms, the widget works fine but when it loads into the database it inserts 0000-00-00 rather than the date chosen. Data type in the database is set to 'date'.

CS4, DB 1.0.7, DE 1.1.0

Any help greatly appreciated,



Sign in to reply to this post

Jason ByrnesWebAssist

the MySQL Date Field expects the date to passed in the following format:
yyyy-mm-dd h:m:s

The date field in your form is not passing the date in that format.

to fix the problem, you can reformat the date that is passed, but first you will need to make note of the name of the date picker form element.

this example code will reformat the date passed by a date picker element named "datePicker"


if(isset($_POST['datePicker']) && $_POST['datePicker'] != "") {
$_POST['datePicker'] = date("Y-m-d h:m:s"strtotime($_POST['datePicker']);

you can add that code to line one of the form page

Sign in to reply to this post

Gary Young


Hi Jason,

As usual thank you for the solution to the issue it worked like a charm, although I had 8 date pickers on the page in question it was easy enough to repair.

If this is a known issue with datepicker shouldn't the widget insert the corrective code when applying the behavior or at least have the documentation recommend using a different data type for the database?

Thanks again,


Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...