Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jan 12, 2010 05:44
open dhtmlx forum
date frmat changes

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
Answer posted by Stanislav (support) on Jan 12, 2010 07:02
Its not clear, which component do you mean?