title: Convert DateTime to String PHP
body: <p>I have already researched a lot of site on how can I convert PHP DateTime object to String.  I always see "String to DateTime" and not "DateTime to String"</p>
  
  <p>PHP DateTime can be echoed, but what i want to process my DateTime with PHP string functions.</p>
  
  <p>My question is how can I make PHP dateTime Object to a string starting from this kind of code:</p>
  
  <pre><code>$dts = new DateTime(); //this returns the current date time
  echo strlen($dts);
  </code></pre>