title: unable to use DateTime in laravel
body: <p>I am using DateTime in controller as:</p>
  
  <pre><code>public function index()
    {
      $seats=seats::all();
      $date = date('Y-M-D');
      $tomorrow= new \DateTime('tomorrow');
          $nextday= new \DateTime('tomorrow + 1day');
          return view('bus.busview',['mytime'=&gt;$date,'seats'=&gt;$seats,'nextday'=&gt;
  
  $nextday,'tomorrow'=&gt;$tomorrow]);
  
  }
  </code></pre>
  
  <p>but while using these variables in view:</p>
  
  <pre><code>Your Name: &lt;input type="name" name="name" id="name" &gt;&lt;br&gt;&lt;BR&gt;
  Your Contact No. &lt;input type="contact" name="contact" id="contact" &gt;&lt;br&gt;&lt;BR&gt;
  Todays date:&lt;mark&gt;{{$mytime}}&lt;/mark&gt;&lt;br&gt;&lt;br&gt;
  tomorrows date:{{$tomorrow}}
  Book for: &lt;select&gt;
    &lt;option name="select" value="{{$mytime}}"&gt;Today&lt;/option&gt;
    &lt;option name="select" value="{{$tomorrow}}"&gt;Tomorrow&lt;/option&gt;
    &lt;option name="select" value="{{$nextday}}"&gt;{{$nextday}}&lt;/option&gt;
    &lt;option name="select" value="{{$nextday}}"&gt;{{$nextday}}&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>i am getting this error:</p>
  
  <blockquote>
    <p>htmlentities() expects parameter 1 to be string, object given</p>
  </blockquote>