I don't know PHP nor do I know how to edit it. I don't know what version of PHP my client's site is using or if I need to edit other php files. I've tried examples listed in other posts, but I'm obviously doing something wrong.
Can someone help me write the code below so that the outputted format is 09/13/2015
Here is my code:
<?php
$date = get_field('date');
$Y = substr($date, 0, 4);
$m = substr($date, 4, 2);
$d = substr($date, 6, 2);
$time = strtotime("{$Y}-{$m}-{$d}");
?>
<?php echo $Y; ?><?php echo $m; ?><?php echo $d; ?>
When I try editing it ends up giving me the Jan 1, 1970 date. So frustrated!
Thank you -