cusatom time format to timestamp php

PHP
<?php 
echo date('m/d/Y H:i:s', 1541843467); 
?> $date_string_prepared = date_create("2020-08-07");
$date_string = $date_string_prepared->format("d M Y");
// result 07 Jul 2020
Source

Also in PHP: