On Sun, Mar 25, 2001 at 03:02:21PM +0200, [EMAIL PROTECTED] wrote:
> I save the date in my MySQL db as 2001-03-25.
> But in my PHP script i want do see it like 25-03-2001.
> How do i get this result
if you can't modify the formart the date is safed as, you could
use split on the string that comes out of the database, to get
the values for day, month, year and then just put the string
in a differen order together:
There is an example here:
http://www.php.net/manual/en/function.split.php
-fkr
--
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
|http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE |
|all your base are belong to us | shame on me | fkr@IRCnet |
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]