Snippet description Snippet class
XHTML-base XHTML
Open image in new window JavaScript
Escape variables PHP
Fread-example PHP
SQL-timestamp to normal date PHP
Remove HTML-tags from string PHP
Formatting MySQL-datetime PHP
on Rollover go to frame Flash
Hiddenable box XHTML / CSS / JS


<?php

  
// Changes MySQL-datetime (like: 2008-01-09 03:02:00) to more
  // readable format (which can be modified with format-parameters
  // of PHP's date-function (http://www.php.net/date))
  // With this example the output is "09.01.2008 03:02:00".

  
$datetime = new DateTime('2008-01-09 03:02:00');
  echo 
date_format($datetime"d.m.Y").' '.date_format($datetime"H:i:s");

?>