title: Codeigniter how to convert date coding style onto this format
body: <p>hi good day everyone i want to change my coding style with my date into this following format.</p>
  <p>this is my echo date original code i want to change my style in coding.</p>
  <pre><code>&lt;td class=&quot;&lt;?php
             if (empty($log-&gt;philgeps_date)) {
             echo &quot;noactioncell&quot;;
              }
              else
              {
                                                
               }
               ?&gt; text-center align-middle&quot; &gt;
      
                &lt;?php
                if (!empty($log-&gt;philgeps_date)) {
                echo date(&quot;m/d/Y&quot;, strtotime($log-&gt;philgeps_date));
                }
                ?&gt;
                &lt;/td&gt;
  </code></pre>
  <p>this is the new code i want to use but i dont know how to declare if there is a echo date and to format with this code.</p>
  <pre><code>&lt;td class=&quot;&lt;?php echo empty($log-&gt;proc_mode) ? &quot;noactioncell&quot; :''; ?&gt; text-center align-middle&quot;&gt;
       &lt;?php echo !empty($log-&gt;proc_mode) ? $log-&gt;proc_mode : '';?&gt;
    &lt;/td&gt;
  </code></pre>