<html>
<! Date.php                                                   >
<! Appendix F, Oracle Database XE PHP Web Programming         >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This demonstrates converting the system date to a          >
<! formatted date.                                            >
<head>
<title>
  Appendix F : Date.php
</title>
<style>
.e {background-color: #ccccff; font-weight: bold; color: #000000;}
.v {background-color: #cccccc; color: #000000;}
</style>
</head>
<body>
<?php
  // Print default timestamp as day, month, and year.
  print "Using default [".date("d M Y")."]<br />";

  // Print current timestamp as day, month, and year.
  print "Using time() [".date("d M Y",time())."]<br />";

  // Print future timestamp as day, month, and year.
  print "Using mktime() [".date("d M Y",mktime(12,0,0,4,6,2010))."]<br />";
?>
</body>
</html>
