SpellsBook

 +PHP
+ Adobe Flash 2 0 (0)
+ Arrays (4)
+ COM for Windows (2)
+ Image (2)
+ LDAP (3)
+ MySQL (11)
+ Regular Expressions (2)
+ String Manipulation (12)
+ Time and Date (6)
+ Date Format
+ Hours to Minutes
+ Minutes to Hours
+ Past Present Future
+ String to Date
+ Today
 +Snippet Options
+   Printer Friendly
 +Library Options
+   View Other Library
Adobe_Flash_3_0
C_Plus_Plus
Debian_Install
Del_me_Soon
HTML_and_CSS
JavaScript
Linux_Commands
PHP
 +General Options
+   Library Home
+   PHP-CSL Credits
+   PHP-CSL License
+   Resource Links
+   Log in
Syntax for: Time and Date / Today

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:

<?php

/* Today is March 10th, 2001, 5:16:18 pm */
$today date("F j, Y, g:i a");                 // March 10, 2001, 5:16 pm
$today date("m.d.y");                         // 03.10.01
$today date("j, n, Y");                       // 10, 3, 2001
$today date("Ymd");                           // 20010310
$today date('h-i-s, j-m-y, it is w Day z ');  // 05-16-17, 10-03-01, 1631 1618 6 Fripm01
$today date('it is the jS day.');   // It is the 10th day.
$today date("D M j G:i:s T Y");               // Sat Mar 10 15:16:08 MST 2001
$today date('H:m:s m is month');     // 17:03:17 m is month
$today date("H:i:s");                         // 17:16:17
?>
 
Description for: Time and Date / Today
  Date format variations


 
Powered by: PHP-CSL V0.9