<?php $date = str_replace("/", ".", '2018-01-01');// replace the / with . $date = date("Y-m-d", strtotime($date)); echo $date;
You have javascript disabled. You will not be able to edit any code.