//Get the date n days ago
function get_minday($n){
return date('Y-m-d',(time()-3600*24*($n-1)));
}
//Get the day of the date
$a="2014-01-22";
$a=strtotime($a); //Convert time to timestamp
echo date('d',$a);
//The first of next month
$reslut_date=date('Y-m-1',strtotime('+1 month',strtotime($row_date['date1'])));
//16th of the month
$reslut_date=date('Y-m-16',strtotime($row_date['date1']));
date_add(SaleDate, INTERVAL 8 HOUR) mysql, add 8 hours
http://www.bkjia.com/PHPjc/735902.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/735902.htmlTechArticle//Get the date n days ago function get_minday($n){ return date('Y-m-d', (time()-3600*24*($n-1))); } //Get the day of the date $a="2014-01-22"; $a=strtotime($a); //Convert the time to Timestamp ech...