Keep Server Online
  
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
  
or
  
 
  
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
  
Thank You! Steffen
  
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |    |   
 | 
     Topic: PHP coding | 
 |   
| Author | 
  | 
 
fifimtwana
 
 
  Joined: 24 Feb 2011 Posts: 22
 
  | 
 Posted: Thu 03 Mar '11 9:34    Post subject: PHP coding | 
     | 
 
  | 
 
hey guys 
 
 
how do u create date range in php,for example
 
 
when booking astudent for leve from  date 1-01-2011 to 8-01-2011..
 
How do you write that in php
 
 
Thanx in advance | 
 
  | 
 
| Back to top | 
 | 
 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Thu 03 Mar '11 14:00    Post subject:  | 
     | 
 
  | 
 
There are many examples on http://www.php.net/date
 
 
if you still have a question please ask again | 
 
  | 
 
| Back to top | 
 | 
 
James Blond Moderator
  
  Joined: 19 Jan 2006 Posts: 7443 Location: EU, Germany, Next to Hamburg
  | 
 Posted: Sun 13 Mar '11 1:41    Post subject:  | 
     | 
 
  | 
 
Well there is something new in PHP 5.3
 
 
 	  | Code: | 	 		  
 
$date = 
 
date_create_from_format('y-m-d', '05-10-12');
 
var_dump(date_format($date, 'F d, Y'));
 
 | 	 
  | 
 
  | 
 
| Back to top | 
 | 
 
 
 
 
 | 
 
 
 |  
 
 |  
  |   
 |