This question already has an answer here:
- Convert one date format into another in PHP 15 answers
Hi I am new into PHP and I really really like it so var. I have a string which I want to convert into a custom date and time by adding just simple characters. I first tried fixing it by myself, but everything I tried didn't worked for me.
Input:
$customdate = "27032017042100";
I want to add to the string above characters like: / and :
Expected result:
27/03/2017 04:21:00
</div>