public function formatExamples()
{
$dateTime = \DateTime::createFromFormat('Y-m-d H:i:s', '2013-07-03 12:34:56');
return ['DateTime object' => [$dateTime, 'Y-m-d H:i:s', '2013-07-03 12:34:56'], 'timestamp as integer' => [1372856513, 'Y-m-d', '2013-07-03'], 'timestamp as string' => ['1372856513', 'Y-m-d', '2013-07-03'], 'now' => ['now', 'Y-m-d', date('Y-m-d')], 'interval' => [new \DateInterval('P1D'), '%d days', '1 days']];
}