2013-04-22 43 views

回答

1

使用功能strtotime($date) 因此,你會是這樣的:

if(strtotime($date1) < strtotime($date2)){ 
    echo Date 2 is greater than date 1; 
}else{ 
    echo Date 1 is greater or equal than Date 2; 
} 
相關問題