title: I cannot convert date and time to Carbon instance in Laravel 5.5
body: <p>I am trying to create <code>Carbon</code> instance from different <code>$date</code> and <code>$time</code> variables. I am using following code right now.</p>
  
  <pre><code>$user-&gt;created_at = \Carbon\Carbon::parse($entry-&gt;Date." ".$entry-&gt;Time);
  </code></pre>
  
  <p>But I am getting this error.</p>
  
  <pre><code>In Carbon.php line 547:
  
  DateTime::__construct(): Failed to parse time string (18/08/2017 10:49:50) at position 0 (1): Unexpected character
  </code></pre>
  
  <p>I also tried removing <code>$time</code> variable to check if it works with just <code>$date</code> variable or not. But In that case too, I am getting this error:</p>
  
  <pre><code>In Carbon.php line 547:
  
  DateTime::__construct(): Failed to parse time string (18/08/2017) at position 0 (1): Unexpected character
  </code></pre>
  
  <p>I also tried trimming out <code>"</code> using <code>trim()</code> function to make sure that the character that Carbon cannot understand is not <code>"</code>. But it's giving me the same output.</p>
  
  <p>How can I solve this error? I tried to find on the internet and other stack overflow questions and they suggested me to update my <strong>Carbon</strong> package and I did. But still, it's giving me the same error. I can't figure out what's wrong with the code.</p>
  
  <p><strong>UPDATE</strong>: I also tried with <code>strtotime($entry-&gt;Date);</code> but still, Same error!</p>