In the future, please reply to the list. Also, I assume this question
has been answered and am, therefore, marking it with [SOLVED].

Shaunak Kashyap
 
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
 
Direct: 323.330.9870
Main: 323.330.9900
 
www.worldpokertour.com
 
Confidentiality Notice:  This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected.  The information is intended
only for the use of the intended recipient.  If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.

> -----Original Message-----
> From: Dan McCullough [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 15, 2006 10:22 AM
> To: Shaunak Kashyap
> Subject: Re: [PHP] date from YYYY-MM-DD to current date
> 
> excellent, I was getting close, was getting hung up on a couple of
things
> 
> On 3/15/06, Shaunak Kashyap <[EMAIL PROTECTED]> wrote:
> > // $pastDateStr = string representation of past date
> > $pastDateTS = strtotime($pastDateStr);
> >
> > For ($currentDateTS = $pastDateTS;
> >        $currentDateTS <= strtotime("now");
> >        $currentDateTS += (60 * 60 * 24)) {
> >
> >        // use date() and $currentDateTS to format the dates in
between
> >
> > }
> >
> > HTH,
> >
> > Shaunak Kashyap
> >
> > Senior Web Developer
> > WPT Enterprises, Inc.
> > 5700 Wilshire Blvd., Suite 350
> > Los Angeles, CA 90036
> >
> > Direct: 323.330.9870
> > Main: 323.330.9900
> >
> > www.worldpokertour.com
> >
> > Confidentiality Notice:  This e-mail transmission (and/or the
> > attachments accompanying) it may contain confidential information
> > belonging to the sender which is protected.  The information is
intended
> > only for the use of the intended recipient.  If you are not the
intended
> > recipient, you are hereby notified that any disclosure, copying,
> > distribution or taking of any action in reliance on the contents of
this
> > information is prohibited. If you have received this transmission in
> > error, please notify the sender by reply e-mail and destroy all
copies
> > of this transmission.
> >
> >
> > > -----Original Message-----
> > > From: Dan McCullough [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 15, 2006 9:58 AM
> > > To: php-general@lists.php.net
> > > Subject: [PHP] date from YYYY-MM-DD to current date
> > >
> > > I need to loop from a date in the past to current date getting all
> > > dates in between.  Anyone have an idea on how to do that?
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to