logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



PHP coding

 
Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner



View previous topic :: View next topic  
Author Message
fifimtwana



Joined: 24 Feb 2011
Posts: 22

PostPosted: Thu 03 Mar '11 9:34    Post subject: PHP coding Reply with quote

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: 6255
Location: Germany, Next to Hamburg

PostPosted: Thu 03 Mar '11 14:00    Post subject: Reply with quote

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: 6255
Location: Germany, Next to Hamburg

PostPosted: Sun 13 Mar '11 1:41    Post subject: Reply with quote

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


Post new topic   Reply to topic    Apache Forum Index -> Coding & Scripting Corner
Page 1 of 1