RE: Re: [PHP] Varchar "date" to real date?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



if its coming from the db, just provide the appropraite format to the date function

ie

date("Y.m.d", $rows['datefield']);

Bastien


From: John Meyer <john.l.meyer@xxxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Subject:  Re: [PHP] Varchar "date" to real date?
Date: Tue, 27 Dec 2005 07:35:42 -0700

On Tuesday 27 December 2005 7:01 am, William Stokes wrote:

> I think I need some help/ideas with this...
>
> If I can get this done how can I still display the dates in european format
> at my web page? Do I have to break the date to pieces and some how
> re-arrange it to the DD.MM.YYYY format or is the some clever function for
> this that can automatically do this?

Well, initially, you probably need to explode it than rearrange it to get it into the database. Once there, however, I would think you could rearrange it
with Date format.
--
Dr. Joseph Dolan: Isn't there a children's book about an elephant named Babar?
Fletch: I don't know. I don't have any.
Dr. Joseph Dolan: No children?
Fletch: No, elephant books.

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


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux