Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check if date is past php

$date = new DateTime($event['date']);
$now = new DateTime();
if($date < $now) {
    echo 'Date is in the past';
}
Comment

PREVIOUS NEXT
Code Example
Php :: setcookie in laravel 8 
Php :: migration with seeder laravel 
Php :: get category post in wordpress 
Php :: php while loop of alphabet 
Php :: get raw query laravel 
Php :: php mysql if exists 
Php :: laravel auth namespace 
Php :: get theme path wordpress dev 
Php :: laravel print log 
Php :: get order details by id woocommerce 
Php :: strtoupper 
Php :: sanitize user input php 
Php :: laravel instal 
Php :: php superglobal 
Php :: call to a member function connection() on null test laravel 
Php :: disable quantity field in woocommerce 
Php :: php mysql get last inserted id 
Php :: get array key php 
Php :: larevel version artisan 
Php :: laravel/framework[v8.75.0, ..., 8.x-dev] require league/flysystem ^1.1 - satisfiable by league/flysystem[1.1.0, ..., 1.x-dev]. 
Php :: laravel blade dump 
Php :: php slugify 
Php :: php get current date strtotime 
Php :: json url decode php 
Php :: parametre grouping laravel quert 
Php :: laravel restore soft delete 
Php :: wp debug 
Php :: json whereIn laravel 
Php :: laravel group routes 
Php :: php generate slug 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =