fork download
  1. <?php
  2.  
  3. $date = DateTime::createFromFormat('Ym', '201705');
  4. echo $date->format('Y/m');
Success #stdin #stdout 0.01s 83904KB
stdin
Standard input is empty
stdout
2017/05