httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RuneImp" <r...@imptech.net>
Subject Re: OT- PHP Format Recordset Date Field
Date Fri, 25 Jan 2002 02:02:43 GMT
Is this PHP3 or something? In the PHP4 Manual I couldn't
find DoDateTime at all? But this works for me

<?php
echo date("m-d-Y")
?>


-=- RuneImp
ImpTech - Web Design, Hosting & Computer Tech
http://imptech.net
rune@imptech.net


----- Original Message ----- 
From: "Vernon A Webb" <VernMan@net-nation.com>
To: "Apache" <users@httpd.apache.org>
Sent: Thursday, January 24, 2002 5:26 PM
Subject: OT- PHP Format Recordset Date Field


I want to format a record that contains a date formatted as 
2002-01-24 but I want to convert it to 01-24-2002. I've 
tried this but it gives me some date in Dec 31, 1969!

<?
php echo DoDateTime($Recordset1->Fields("u_date"), 'd-m-Y')
?>

Anyone ideas?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message