Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. $dateTime = '2017-04-17 18:26:03';
  2. $parts = $dateTime.split("/[- :]/");
  3. $wanted = $parts[2]+"/"+$parts[1]+"/"+$parts[0]+ $parts[3]+":"+$parts[4]
  4. ##-- Regex --##
  5. $result = $datetime.replace("/^(\d+)-(\d+)-(\d+)(.*):\d+$/", '$3/$2/$1 $4');