<?php
$hora = '120034';
$data = '20170508';
$mes = '201704';
$fome = '62992161424';
echo $string;
echo "\n";
$string = $dia . "/" . $mez . "/" . $ano;
echo $string;
echo "\n";
$string = $month . "-" . $ano;
echo $string;
echo "\n";
$quatro = substr($fome, 7, 4);
$string = $dois . "-" . $cinco . "-" . $quatro;
echo $string;
PD9waHAKCiRob3JhID0gJzEyMDAzNCc7CiRkYXRhID0gJzIwMTcwNTA4JzsKJG1lcyA9ICcyMDE3MDQnOwokZm9tZSA9ICc2Mjk5MjE2MTQyNCc7CgokYXJyYXkgPSBzdHJfc3BsaXQoJGhvcmEsIDIpOyAKJHN0cmluZyA9IGltcGxvZGUoIjoiLCAkYXJyYXkpOwplY2hvICRzdHJpbmc7IAoKZWNobyAiXG4iOwoKJGFubyA9IHN1YnN0cigkZGF0YSwgMCwgNCk7CiRtZXogPSBzdWJzdHIoJGRhdGEsIDQsIDIpOwokZGlhID0gc3Vic3RyKCRkYXRhLCA2LCAyKTsKJHN0cmluZyA9ICRkaWEgLiAiLyIgLiAkbWV6IC4gIi8iIC4gJGFubzsKZWNobyAkc3RyaW5nOwoKZWNobyAiXG4iOwoKJGFubyA9IHN1YnN0cigkbWVzLCAwLCA0KTsKJG1vbnRoID0gc3Vic3RyKCRtZXMsIDQsIDIpOwokc3RyaW5nID0gJG1vbnRoIC4gIi0iIC4gJGFubzsKZWNobyAkc3RyaW5nOwoKZWNobyAiXG4iOwoKJGRvaXMgPSBzdWJzdHIoJGZvbWUsIDAsIDIpOwokY2luY28gPSBzdWJzdHIoJGZvbWUsIDIsIDUpOwokcXVhdHJvID0gc3Vic3RyKCRmb21lLCA3LCA0KTsKCiRzdHJpbmcgPSAkZG9pcyAuICItIiAuICRjaW5jbyAuICItIiAuICRxdWF0cm87CmVjaG8gJHN0cmluZzs=