Hi Allen.
I figure out the style sheet issue by adding bootstrap.css and bootstrap.js about previous question : https://datatables.net/forums/discussion/comment/69152#Comment_69152
but some datatime picker icon gone. any idea ? I will keep checking whether I miss any file anyway.
But I got new error with format:
TypeError: $.fn.datetimepicker.dates is undefined
format: "dd/mm/yyyy"
my html code is:
{
"label": "Message create time",
"name": "time_add",
"type": "datetime",
}
my php code is:
Field::inst( 'time_add' )
->validator( 'Validate::dateFormat', array( 'empty'=>false, 'format'=>'M/d/Y H:i A' ) )
->getFormatter( 'Format::date_sql_to_format', 'd-M-Y H:i A' )
->setFormatter( 'Format::date_format_to_sql', 'M/d/Y H:i A' )
the expected text on datatime picker is like: 12/01/2014 11:30 AM
any suggestions?
Thank you very much