<?php // change both dates' formats from d-m-Y to Y-m-d var_export( preg_replace( '~(\d{2})(-\d{2}-)(\d{4}) - (\d{2})(-\d{2}-)(\d{4})~', '$3$2$1 - $6$5$4', '25-05-2020 - 30-05-2020' ) );
You have javascript disabled. You will not be able to edit any code.