How do i save end_date in database ?

function default_values($action){
global $user_id;
$action->add_field(“userId”, $user_id);
$action->add_field(“end_date”,gantt.templates.tooltip_date_format(end));
}

$gantt = new JSONGanttConnector($res);

$links = new JSONGanttLinksConnector($res);

$links->filter(“userId”, $user_id);
$links->event->attach(“beforeProcessing”,“default_values”);
$gantt->render_links(“gantt_links”, “id”, “source,target,type”);

$gantt->filter(“userId”, $user_id);
$gantt->filter(“end_date”,gantt.templates.tooltip_date_format(end));
$gantt->event->attach(“beforeProcessing”,“default_values”);
$gantt->render_sql("select * from gantt_tasks where userId = ".$user_id,“id”,“start_date,end_date,duration,text,progress,sortorder,parent”);
$gantt->render_table(“gantt_tasks”,“id”,“start_date,end_date,duration,text,progress,parent,userId”);

?>

Hello.

In case to save end_date you could try something like following:

$gantt = new JSONGanttConnector($res, $dbtype);

$gantt->render_links("gantt_links", "id", "source,target,type");
$gantt->render_table("gantt_tasks","id","start_date,duration,text,end_date,progress,parent","");