<?php $time = "04062018"; $dateTime = datetime::createfromformat('dmY',$time); $garaga = $dateTime->format('d-M-Y'); var_dump($garaga); $rola = new DateTime($dateTime);
You have javascript disabled. You will not be able to edit any code.