seek scripts php
SEEKSCRIPTS.COM - OPEN SOURCE, FREE AND COMMERCIAL PHP SCRIPTS FOR YOUR SITE

home page latest news web development curriculum vitae php scripts contact me

  • C# (Microsoft .NET)
  • JAVA
  • Dynamic HTML
  • PHP & MySQL
  • ASP.NET - C# & VB.NET
  • Perl & CGI
  • C | C++
  • Vector Markup Language
  • SMIL
  • Assembler
  • Databases
  • Wap Development
  • Web site promotion
  • Web Marketing


  • Curriculum Vitae (CV)
  • Major web solutions
  • Web design projects
  • Software solutions

How to display the date in an appropriate format using PHP?

Free programming example written by Anton Zamov


You should use the special date function in PHP.

Take a look at the example
<?php 
   echo date("D M d"); 
  ?> 
   
  will display: Mon Feb 03
   
  where 
   
  Y = Year eg. 2003 
  y = Year eg. 03 
  M = Month eg. Jan 
  m = Month eg. 01 
  D = Day eg. Fri 
  d = Day eg. 03 
  z = Day of the year eg. 002 
  H = Hours in 24 hour format eg. 07 
  h = Hours in 12 hour format eg. 7 
  i = Minutes eg. 29 
  s = Seconds eg. 28 
  U = Seconds since epoch eg. 1041604168 








Jobs Portal, poweful jobs board software

PHP Mall, multi vendors mall website software

Car Portal, php script for auto classifieds websites

NetArt Media, software products and services

Real Estate Portal, web software for real estate portals

Blog System, multi user blog hosting script

Classified Ads Script, Responsive & SEO optimized PHP classified ads script for your site

WebSite Directory Script, Create easily your own website directory with this professionally designed script

C# (Microsoft .NET) | JAVA | Dynamic HTML | PHP & MySQL | Perl & CGI | C | C++ | Vector Markup Language
SMIL | Assembler | Databases | Wap Development | Web site promotion | Web Marketing

Copyright Anton Zamov 1998 - 2023