* Thus wrote Adam Voigt ([EMAIL PROTECTED]):
> Umm.
>
> echo(date('U',strtotime('next Friday')));
I prefer:
while(1) echo(date('U', strtotime('Saturday'));
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]):
> > -Original Message-
> > From: Adam Voigt [mailto:[EMAIL PROTECTED]
> > Sent: 21 July 2003 14:29
> >
> > echo(date('U',strtotime('next Friday')));
>
> Actually, for this upcoming Friday, that'd just be
>
>echo(date('U
> -Original Message-
> From: Elliot Tobin [mailto:[EMAIL PROTECTED]
> Sent: 21 July 2003 14:08
>
>
> I need a function to create the dates of previous Fridays, in
> 21-JUL-2003 format.
>
> I figure this has already been done, so I wanted to ask before I
> continued writing my own.
Ta
More like:
echo(date('Jennifer Lopez',strtotime('next Friday')));
John Manko wrote:
Ha. Not what I have in mind. :)
Adam Voigt wrote:
Umm.
echo(date('U',strtotime('next Friday')));
Notice the strtotime part.
On Mon, 2003-07-21 at 09:25, John Manko wrote:
I'd settle for a function that w
Ha. Not what I have in mind. :)
Adam Voigt wrote:
Umm.
echo(date('U',strtotime('next Friday')));
Notice the strtotime part.
On Mon, 2003-07-21 at 09:25, John Manko wrote:
I'd settle for a function that will generate a date for this upcoming
friday. ;)
Elliot Tobin wrote:
I need a f
> -Original Message-
> From: Adam Voigt [mailto:[EMAIL PROTECTED]
> Sent: 21 July 2003 14:29
>
> echo(date('U',strtotime('next Friday')));
Actually, for this upcoming Friday, that'd just be
echo(date('U',strtotime('Friday')));
Slightly confusingly, 'next Friday' would be the Friday a
Umm.
echo(date('U',strtotime('next Friday')));
Notice the strtotime part.
On Mon, 2003-07-21 at 09:25, John Manko wrote:
> I'd settle for a function that will generate a date for this upcoming
> friday. ;)
>
> Elliot Tobin wrote:
>
> >I need a function to create the dates of previous Fridays
Hi Elliot,
> I need a function to create the dates of previous
> Fridays, in 21-JUL-2003 format.
It'll be different depending on what you want to happen if you pass a Friday
timestamp to the function, but it should be something like:
function friday($ts)
{
while (date("w", $ts) != 5)
$ts
I'd settle for a function that will generate a date for this upcoming
friday. ;)
Elliot Tobin wrote:
I need a function to create the dates of previous Fridays
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, 18 Mar 2002, Ryan wrote:
> Hi, I'm trying to create an events page, where it shows the posted
> events. I enter data using phpmyadmin. Currently, the ouput is like
> this:
>
> 2002-03-06
>
> I'm having trouble with the formatting of the date. I'm using the type
> date with the functio
I use string manipulation on the date, basically split it into $day, $month
and $year and use this to product formatted output.
Ben
At 17:51 18/03/2002, Ryan wrote:
>Hi, I'm trying to create an events page, where it shows the posted
>events. I enter data using phpmyadmin. Currently, the oupu
Since you're using phpmyadmin, I'm assuming you're using mysql. You could
use the built-in date and time functions to do the formatting when
selecting your date field. Check here:
http://www.mysql.com/doc/D/a/Date_and_time_functions.html
mh.
On Mon, 18 Mar 2002, Ryan wrote:
> Hi, I'm trying
Sure, you could do something like:
$event_month = substr($event_row["Date"], 5, 2);
$event_day = substr($event_row["Date"], 8, 2);
$event_year = substr($event_row["Date"], 0, 4);
$msgBody = "Date: " . date("l",
mktime(0,0,0,$event_month, $event_day,
$event_year)) . ", " . date("F",
13 matches
Mail list logo