title: Setting value datetime-local on laravel
body: <p>I want to add value in my edit form, with the value take from my database. but I don't know how to add value in the form of type datetime-local. I've tried but not appear.</p>
  
  <p>here my view :</p>
  
  
  
  
  
  <pre><code>&lt;div class='form-group col-sm-6'&gt;
                          &lt;label&gt;Date Start&lt;/label&gt;
                          &lt;input class='form-control' value='{{ @$row-&gt;date_start }}' readonly /&gt;
                          &lt;input type='datetime-local' class='form-control' name='date_start' value='{{ @$row-&gt;date_start }}' required/&gt;
                      &lt;/div&gt;
                      &lt;div class='form-group col-sm-6'&gt;
                          &lt;label&gt;Date End&lt;/label&gt;
                          &lt;input  class='form-control' value='{{ @$row-&gt;date_end }}' readonly /&gt;
                          &lt;input type='datetime-local' class='form-control' name='date_end' value='{{ @$row-&gt;date_end }}' required/&gt;
                      &lt;/div&gt;
  </code></pre>
  
  
  
  <p>and here my controller :</p>
  
  
  
  
  
  <pre><code>public function postEditSave($id) {
          $simpan= array();
          $simpan['date_start']=Request::input('date_start');
          $simpan['date_end']=Request::input('date_end');
          $simpan['condition_status']=Request::input('condition_status');
          $simpan['id_cms_users']=Request::input('id_cms_users');
          $simpan['id_cms_companies']=Request::input('id_cms_companies');
  
          DB::table('log_patrols')-&gt;where('id', $id)-&gt;update($simpan);
          Session::flash('edit', 'Berhasil merubah data');
          return redirect('patrols');
      }
  </code></pre>
  
  
  
  <p>and this my database :</p>
  
  <p><a href="http://i.stack.imgur.com/HxgSw.png" rel="nofollow">here</a></p>
  
  <p>and for notice my <strong>date_start</strong> and <strong>date_end</strong> column is type <strong>datespam</strong> </p>
  
  <p>can someone give me solution ? or did any other form input type can i use for my project ? which could take a date and time data directly? for to change type <strong>datetime-local</strong> ? </p>
  
  <p>thanks...</p>
  
  <p><em>sorry for my bad english.</em></p>