|
 |
|
เช็ควันที่ สองอัน โดยอันเเรกต้องเป็นวันที่อยู่ ก่อนอันที่ 2 |
|
 |
|
|
 |
 |
|
<?php
$date_start = "2009/02/25"; //วันที่1
$date_end = "2009/02/26"; //วันที่2
$date1=explode("/",$date_start);
$date2=explode("/",$date_end);
$init_date = mktime(12,0,0,$date1[1],$date1[2],$date1[0]);
$dst_date = mktime(12,0,0,$date2[1],$date2[2],$date2[0]);
$offset = $dst_date-$init_date;
$days = floor($offset/60/60/24);
if ($days<0) echo ("False");
else echo ("True");
?>
ประยุกต์ดูนะครับ
|
 |
 |
 |
 |
Date :
2009-05-06 16:26:04 |
By :
minitiger |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โอ้ สุดยอดเลยครับ
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2009-05-06 16:46:21 |
By :
HEroWW |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
Load balance : Server 05
|