check if date between two dates laravel
<?php
//check if date between two dates
$currentDate = date('Y-m-d');
$currentDate = date('Y-m-d', strtotime($currentDate));
$startDate = date('Y-m-d', strtotime("01/09/2019"));
$endDate = date('Y-m-d', strtotime("01/10/2019"));
if (($currentDate >= $startDate) && ($currentDate <= $endDate)){
echo "Current date is between two dates";
}else{
echo "Current date is not between two dates";
}
//@sujay
Also in PHP:
- add google analytics to website laravel
- can we generate alphanumeric 6 digit primary key in phpmyadmin
- SSL operation failed with code 1. OpenSSL Error messages
- date with time in php
- catching error php
- base64 encode image php
- $var.length in php
- composer create-project laravel/laravel 8
- create a new laravel folder
- clear specific cache laravel 6
- cakephp condition string length > 0
- ->store() laravel change name
- array sort unique laravel
- check if char exists in string php
- convert string to timestamp php
- create symfony project
- datetimepicker format php
- $db php
- TRY CAT in php
- echo day php
- $ php artisan route list
- check length of a variable php
- Does ,date('Y-m-d H:i:s') grab local pc or server pc time
- april 6 2010 date format php