NapalmRain,
function formatTime(time)
{
return time.replace(/.*(\d\d:\d\d:\d\d)/,'$1')
}
var result = {'datetime' : '2015-12-24 11:01:10'};
alert(formatTime(result.datetime));
function formatTime(time)
{
return time.replace(/(\d+)-(\d+)-(\d+)/,'$2-$3-$1')
}
var result = {'datetime' : '2015-12-24 11:01:10'};
alert(new Date(formatTime(result.datetime)));