title: Laravel format DateTime from database result
body: <p>My database stores two dates in the mysql DateTime format <code>YYYY-MM-DD HH:MM:SS</code>. When I get this data (with other strings etc), I want to convert it to another format, maybe <code>DD.MM.YYYY HH:MM:SS</code> and display it on my view in a table cell. My database dates are called <code>date_begin</code> and <code>date_end</code>.</p>
  
  <p>Better, when I get this dates from database, convert it to <code>DD.MM.YYYY</code> format, separate the date and the time, store the time in a custom string ("HH1:MM1 - HH2:MM2") and bring both on my view.</p>
  
  <p>How can I achieve this? I found some examples to convert on the view, not in the controller, but I think this is not good for MVC.</p>