<?php $test = new DateTime('01.02.2017'); echo date_format($test, 'Y-m-d');
Standard input is empty
2017-02-01
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!