title: jqGridPHP : jqGridRender Class > setColProperty > "editoptions"=>array("value"=> $datetime) > How to format the $datetime php variable?
body: <p>In a php file, i use the jqGridRender Class to build and manage a grid. </p>
  
  <p>To add a new item in my SQL table, i use (among others things) a php variable named <code>$start</code>. This variable is known, it belong to the PRIMARY KEY of this new item i want to add. Its type in the table is DATETIME and its value is "2010-06-16 06:00:00"</p>
  
  <ul>
  <li><p>How to format <code>$start</code> variable in the followsing line ?</p>
  
  <pre><code>$grid-&gt;setColProperty("start", array("hidden"=&gt;true,"editoptions"=&gt;array("value"=&gt; $start),"editrules"=&gt;array("required"=&gt;true)));
  </code></pre></li>
  </ul>
  
  <p>In fact, when i use it as the above line,<code>$start</code>equals "2010-06-16 06:00:00" becomes "2021-12-01 06:00:00" in the table.</p>
  
  <p>What to do, please ?</p>
  
  <p>Regards, Qualliarys</p>