<?php $regex = '#Date\((?<epoch>\d{10}).+\+\d+\)#'; $string = 'Date(1536044400000+0100)'; preg_match($regex, $string, $match); $date = new DateTime('@' . $match['epoch']); echo $date->format('Y-m-d H:i:s');
You have javascript disabled. You will not be able to edit any code.