title: How can i show only hour and minutes?
body: <p>I am working in php in which i am using mysql.</p>
  
  <p>This is my function which is returning result in json format.</p>
  
  <pre><code>function getTiming($placeId) {
  
    $sql = "SELECT * from place_timing where placeId='$placeId'";
  
      $result = mysql_query($sql) or die ("Query error: " . mysql_error());
  
      $records = array();
  
      if (mysql_num_rows($result)==0)
  
       {
  
        echo '['.json_encode(array('placeId' =&gt; 0)).']';
        //this is for null result
  
       }
  
       else
  
       {
  
         while($row = mysql_fetch_assoc($result)) 
  
         {
  
           $records[] = $row;
  
         }
  
  
         echo json_encode($records); //this concerts in json
  
       }
  
  }
  </code></pre>
  
  <p>output of this function is like this:-</p>
  
  <pre><code>[{"placeId":"31","sun_open_time":"00:00:00","sun_close_time":"00:00:00","mon_open_time":"00:00:00","mon_close_time":"23:00:00","tue_open_time":"00:00:00","tue_close_time":"00:00:00"}]
  </code></pre>
  
  <p>But I want to show only hour:minutes.  means I don't want to show seconds.</p>
  
  <p>please suggest me how can I change my above function so I can show only hour:minutes.</p>
  
  <p>Thank you in advance.</p>