Date and Time from string to php time : <p>Hi Im trying to get the string    "25.01.2017 08:22:10" to a valid php time </p>

<pre><code>date_default_timezone_set('Europe/Berlin');
$format = 'Y-m-d H:i:s';
$date = DateTime::createFromFormat($format, 25.01.2017 08:22:10);
</code></pre>

<p>does not work. Maybe its because of the dots... </p>
