date to timestamp php

PHP
$today = date("F j, Y, g:i a");   // October 30, 2019, 10:42 pm
$today = date("D M j G:i:s T Y"); // Wed Oct 30 22:42:18 UTC 2019
$today = date("Y-m-d H:i:s");     // 2019-10-30 22:42:18(MySQL DATETIME format)<?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<?php
$date = new DateTime();
echo $date->getTimestamp();
?>

$date = '25/05/2010';
$date = str_replace('/', '-', $date);
echo date('Y-m-d', strtotime($date));<?php
$date = date_create();
echo date_timestamp_get($date);
?>


Source

Also in PHP: