Or if you are retrieving the data from a database, use the SQL Date-Time functions
(RTFM).
=dn
- Original Message -
From: "Rafael Perazzo B Mota" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 26 January 2002 16:38
Subject: [PHP] Re:[PHP] Changeing Dates.
function ChangeDate ($date) {
$day=substr($date,6,2); //get the day
$month=substr($date,4,2); //get the month
$year=substr($date,0,4); //get the year
$time=substr($date,8,4); //get the time
$secs=substr($date,12,2); //get the seconds
$ret="$day $month $year @ $time h $secs s"
6,2);
etc...
Hope this helps.
Jeff
- Original Message -
From: "Philip J. Newman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 26, 2002 8:35 AM
Subject: [PHP] Changeing Dates.
I have had no luck changing:
20020124020555
into
24 01 2002 @ 0205h 5
I have had no luck changing:
20020124020555
into
24 01 2002 @ 0205h 55s
Can anyone put some light on this, I'm going nuts
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
4 matches
Mail list logo