Thanks guys.
On 17/03/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
>
> select date_format(date,"%d/%m/%y") as date from table
>
> It'll show in 17/03/06 format
>
> select date_format(date,"%d/%m/%Y") as date from table
>
> It'll show in 17/03/2006 format
>
>
> Tom Chubb wrote:
>
> > P
OTECTED]>
Sent: Wednesday, March 05, 2003 2:38 PM
Subject: Re: [PHP] Re: Date Question.
| He's recommending something like this..
|
| $tmp = explode(' ', $date);
| if (date("Y-m-d") == $tmp[0]) // date format -mm-dd
| {
| echo "Today";
| }
|
manual/en/function.explode.php
http://www.php.net/manual/en/function.date.php
- Kevin
- Original Message -
From: "Sebastian" <[EMAIL PROTECTED]>
To: "Philip Hallstrom" <[EMAIL PROTECTED]>
Cc: "php list" <[EMAIL PROTECTED]>
Sent: Wednesday, March
can you give an example? I am stil learning :)
- Original Message -
From: "Philip Hallstrom" <[EMAIL PROTECTED]>
| Strip off the H:i:s part using explode() and use date() to get an
| equivalent string for right now and if they match, today's the day.
|
| On Wed, 5 Mar 2003, Sebastian wro
> From: "Jonas Geiregat" <[EMAIL PROTECTED]>
> Sent: Sunday, September 29, 2002 10:56 AM
> Subject: [PHP] Re: date question
> and If I want to calculate from given date the next month
> like strtotime("next month") gives me the date of one month in advanced
> from NOW
> but I want to get the dat
5 matches
Mail list logo