📜  php 将日期时间转换为时间戳 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:58.800000             🧑  作者: Mango

代码示例6
";
    
    //D-M-Y formate   
    $date2 = "24-09-2020";
    $timestamp2 = strtotime($date2);

    echo $timestamp2; 
    echo "
"; //British English words Formate $date3 = "16 May 2019"; $timestamp3 = strtotime($date3); echo $timestamp3; ?> //Output: 1600819200 1600905600 1557964800