SproutCMS

This is the code documentation for the SproutCMS project

function formatMysqlDatetime()

Takes a mysql DATETIME value (will probably also work with a TIME or DATE value)
and formats it according to the format codes specified by the PHP date() function.

The format is optional, if omittted, uses 'd/m/Y g:i a' = '7/11/2010 5:27 pm'

Usage

unknown Sprout::formatMysqlDatetime ( mixed $date [, mixed $format ] );

Arguments

  1. $date
  2. $format = d/m/Y g:i a