![]()  | 
	
		
 php question: today Yesterday Tomorow 
		
		
		Is there a quick way to determine if a certain date is Tomorrow or Yesterday? 
	 | 
		
 Quote: 
	
 { if (date('dmY',time()+86400)==date('dmY',$d)) return 't'; if (date('dmY',time()-86400)==date('dmY',$d)) return 'y'; if (date('dmY',time())==date('dmY',$d)) return 'n'; return ''; } returns t for tomorow, y for yesterday, n for same day and empty string for others... param must be an unix timestamp, for conversion see PHP mktime function...  | 
| All times are GMT -7. The time now is 08:35 AM. | 
	Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
	
	©2000-, AI Media Network Inc123