Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php

date_default_timezone_set('asia/Dhaka');

$expire = strtotime("-1 days");
 
if($expire <= time()){
    echo '<br>Expired on '. date('F j, Y, g:i:s A', $expire);
}else{
    echo '<br>Running until '. date('F j, Y, g:i:s A', $expire);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
8+6 =