logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


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

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Coding & Scripting Corner View previous topic :: View next topic
Reply to topic   Topic: PHP coding
Author
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: 7288
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: 7288
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


Reply to topic   Topic: PHP coding View previous topic :: View next topic
Post new topic   Forum Index -> Coding & Scripting Corner