Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check if date has passed php

$date = new DateTime($event['date']);
$now = new DateTime();

if($date < $now) {
    echo 'date is in the past';
}
Comment

PREVIOUS NEXT
Code Example
Php :: symfony add field to entity 
Php :: recursive binary search php 
Php :: maintenance mode laravel 
Php :: php array insert before key 
Php :: while true php 
Php :: php read from mariadb 
Php :: sanitize file name 
Php :: date time format php 
Php :: how to acces sql with php 
Php :: php named parameters 
Php :: how to upload two files on same form different path in codeigniter 
Php :: search laravel 
Php :: laravel validation not equal to 
Php :: laravel How to capture output in a file from php artisan test 
Php :: laravel foreach loop index in controller 
Php :: wc create new category 
Php :: phpunit test private function 
Php :: wordpress post autosave time 
Php :: all resource routes laravel 8 
Php :: how to make core controller codeigniter 3 more than 1 
Php :: Unknown column type "double" requested. Any Doctrine type that you use has to be registered with DoctrineDBALTypesType::addType 
Php :: The uploaded file exceeds the upload_max_filesize directive in php.ini. 
Php :: dispatch job with queue name in laravel 
Php :: custom timestamp column laravel 
Php :: codeigniter session destroy automatically after redirect 
Php :: string between two strings 
Php :: force https redirect php s 
Php :: laravel add package without updating 
Php :: withsuccess laravel 8 
Php :: php convert latitude longitude to map tile 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =