json / datetime
json / datetime
spidernet1979
Posts: 6Questions: 0Answers: 0
Hi!
Once again I have a little problem with my datatable. my datatable gets its data via json. one cell gets a release date and a time.
[code]
...
$datetime = mktime($hour, $min, $sec, $month, $day, $year);
$sOutput .= '"'.date("d/m/Y H:i:s, $datetime).'",';
...
return $sOutput;
[/code]
Now I have the problem that my date down but the time is up sorted. Is there a possibility that I can both on either sort up or sort down?
Lg
spidernet1979
Once again I have a little problem with my datatable. my datatable gets its data via json. one cell gets a release date and a time.
[code]
...
$datetime = mktime($hour, $min, $sec, $month, $day, $year);
$sOutput .= '"'.date("d/m/Y H:i:s, $datetime).'",';
...
return $sOutput;
[/code]
Now I have the problem that my date down but the time is up sorted. Is there a possibility that I can both on either sort up or sort down?
Lg
spidernet1979
This discussion has been closed.
Replies
example of this cell (wrong):
[code]
09/08/2010 10:01:32
09/08/2010 10:14:25
08/08/2010 09:12:34
08/08/2010 15:12:00
[/code]
example of this cell (right):
[code]
09/08/2010 10:14:25
09/08/2010 10:01:32
08/08/2010 15:12:00
08/08/2010 09:12:34
[/code]
Allan