I needed to get rid of the timestamp appended to the datepicker field and found a topic that solved exactly that
http://ellislab.com/forums/viewthread/207191/
by modifying this file and line
expressionengine > modules > safecracker > libraries > safecracker_lib.php
if ($this->datepicker)
{
$this->EE->javascript->output('$.datepicker.setDefaults({dateFormat:$.datepicker.W3C+EE.date_obj_time});');
}
to this
if ($this->datepicker)
{
$this->EE->javascript->output('$.datepicker.setDefaults({dateFormat: "mm-dd-yy"});');
}
That works great but when i submit my safecracker form it fails validation and does not save the field data. Does anyone know of a way to modify the code to overide this validation for the date fields?
edit: im guessing its failing validation because the save works until i modify this line of code, then the form stops saving date field information
