Re: [PHP] Help with Date

2003-07-21 Thread Curt Zirzow
* 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,

Re: [PHP] Help with Date

2003-07-21 Thread Curt Zirzow
* 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

RE: [PHP] Help with Date

2003-07-21 Thread Ford, Mike [LSS]
> -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

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
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

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
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

RE: [PHP] Help with Date

2003-07-21 Thread Ford, Mike [LSS]
> -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

Re: [PHP] Help with Date

2003-07-21 Thread Adam Voigt
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

Re: [PHP] Help with Date

2003-07-21 Thread Jon Haworth
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

Re: [PHP] Help with Date

2003-07-21 Thread John Manko
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

Re: [PHP] help with date formatting

2002-03-18 Thread mnc
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

Re: [PHP] help with date formatting

2002-03-18 Thread Ben Edwards
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

Re: [PHP] help with date formatting

2002-03-18 Thread Mark Heintz PHP Mailing Lists
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

Re: [PHP] help with date formatting

2002-03-06 Thread Anas Mughal
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",