<?php $dateValue = "2017-02-04 10:00:00";$time = strtotime($dateValue);$month = date("m",$time);echo($month);
Standard input is empty
02
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!