/**
* DateFormatter
*
* Formats dates with days and month names with the same options as php Date or DateTime->formatter
*
* @version 1.0.2
* @author
* @copyright
*//**
* format a date as Y-m-d H:i:s eg: 2019-01-31 03:06:05
*
* @param mixed $anyDate A timestamp or DateTime or parsable by strtotime Default now, ie: time()
* @return string The formatted date
*//**
* format a date as Y-m-d eg: 2019-01-31
*
* @param mixed $anyDate A timestamp or DateTime or parsable by strtotime Default now, ie: time()
* @return string The formatted date
*//**
* format a date as d/M/Y G:i eg: 31/Ene/2019 3:14
*
* @param mixed $anyDate A timestamp or DateTime or parsable by strtotime Default now, ie: time()
* @return string The formatted date
*//**
* format a date as d/M/Y eg: 31/Ene/2019
*
* @param mixed $anyDate A timestamp or DateTime or parsable by strtotime Default now, ie: time()
* @return string The formatted date
*//**
* Format a date with local names for days and months with the same format string as php date & DateTime->format
*
* @param string $format The format string as per php date and DateTime->format, default 'd/M/Y'
* @param mixed $anyDate A timestamp or DateTime or parsable by strtotime Default now, ie: time()
* @return string The formatted date
*/Disclaimer: Auto generated file. Please help us setting parameters to useful values and extending the examples.
|