# Pastebin M4wwd9KF var actionDate = function actionDate(arrayFromPHP){ return arrayFromPHP[i]['ActionDate']['date'].split(' ')[0]; }