Author Topic: date -- Format a local time/date (PHP 3, PHP 4 )  (Read 5050 times)

0 Members and 1 Guest are viewing this topic.

Offline Mec4D

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://www.mec4d.com
date -- Format a local time/date (PHP 3, PHP 4 )
« on: July 25, 2002, 06:56:29 AM »
I know that somebody asked about the other time that the standart so here is the code.
Original:
Code: [Select]
<?php
                    
echo date&#40;"d.m.Y, H&#58;i"&#41;; 
        ?>

New:

Code: [Select]
<?php
                    
echo date("D M d, Y g:i a"); 
        ?>


The data and time will looks like this:

Thu Jul 25, 2002 12:39 am
Catharina