1 |
1546
|
Luisehahne
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
* QuickSkin Extension dateformatgrid
|
4 |
|
|
* Changes Dateformat
|
5 |
|
|
*
|
6 |
|
|
* @author Andy Prevost andy@codeworxtech.com - original by Philipp v. Criegern philipp@criegern.de
|
7 |
|
|
*/
|
8 |
|
|
function qx_dateformatgrid ( $param, $format = 'F j, Y' ) {
|
9 |
|
|
list($month,$day,$year,$hour,$minute,$second) = split("[-:T\.]", $param);
|
10 |
|
|
|
11 |
|
|
// handle empty values
|
12 |
|
|
if (! $hour) { $hour = '00'; }
|
13 |
|
|
if (! $minute) { $minute = '00'; }
|
14 |
|
|
if (! $second) { $second = '00'; }
|
15 |
|
|
|
16 |
|
|
return date( $format, mktime($hour, $minute, $second, $month, $day, $year));
|
17 |
|
|
}
|