I am a real noop when it comes to date and time. I want to convert a date generated by a datepicker to a locale. The datpicker gives me the following format:
I receive the date through POST in the controller:
$rDatum = filter_input(INPUT_POST, 'datum', FILTER_SANITIZE_STRING);
I presume I thanneed to convert it before sending it to the view:
$datum = date("j F Y", strtotime($rDatum));
In the view I have the following:
<?= strftime('%A %e %B', $datum) ?>
But that gives me a non well formed numeric value error. What am I doing wrong?