Hello,
i am changing the date format and it was changed the date fromat ‘Y-m-d’ to ‘d-M-Y’ in my two column start date and end date both
but when i update the date of start date then it will update the date but end date must be changed to ‘0000-00-00’
please tell me wht i do so whe i update the date then it will update and end date is not changed
below is my code
function start_date($data){
$start_value = $data->get_value(“startDate”);
$date_start= date(“d.M.Y”,strtotime($start_value));
$data->set_value(“startDate”,$date_start);
}
$grid->event->attach(“beforeRender”,“end_Date”);
function end_Date($data){
$value = $data->get_value(“endDate”);
$date1= date(“d.M.Y”,strtotime($value));
$new_value=$date1;
$data->set_value(“endDate”,$new_value);
}
please reply me wht i do
regards
Seema
Its not clear, which component do you mean?