php check if time is less than the current time
$date_now = new DateTime(); $date2 = new DateTime("01/02/2016"); if ($date_now < $date2) { echo 'less than'; }else{ echo 'greater than'; }
PHP check if time is greater than the current time
$date_now = new DateTime(); $date2 = new DateTime("01/02/2016"); if ($date_now > $date2) { echo 'greater than'; }else{ echo 'less than'; }
Please add your answer below
How to use Cloud Scheduler API to submit your sitemap.xml to Google Search Console using a Service Account
Horizontal Live Event Cards with Image and Gradient – React Native
React Native Tabs in Single File and Split Files
React Native List with Grid consisting of Icons and Text
React Native Cart System
Horizontal Live Event Cards with Image and Gradient – React Native
React Native Tabs in Single File and Split Files
React Native List with Grid consisting of Icons and Text
React Native Cart System