Hi Guys! I cant find a way to show my data array the way i need it to be hope you can help me. i already tried using array_push(), json_encode() but still no result. basically what i am getting is like this Array ( [0] => Array ( [name] => Boat + Cab [TOTAL] => 3 ) [1] => Array ( [name] => Bus + Boat [TOTAL] => 41040 ) [2] => Array ( [name] => Bus + Boat + Cab [TOTAL] => 840 ) [3] => Array ( [name] => Bus Only [TOTAL] => 14343.75 ) [4] => Array …

Member Avatar
Member Avatar
+0 forum 4

I have the following javascript code var list = [ { Date : '2014-12-31 12:23:43', DateStart: '1980-12-30 23:43:42', Name: 'Kate', ... ... }, { Date : '1978-05-21 23:43:65', DateStart: '1973-04-06 12:34:09', Name: 'John', ... ... } ]; And the following code to verify for regex pattern: for (var i in list) { var data = []; if (/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})/.test(list[i].?)) { data.push({ Data: list[i].Data }); } } What can I do to all columns be verified for the date pattern? Making the array date stay only with the values 2014-12-31 12:23:43,1980-12-30 23:43:42,1978-05-21 23:43:65,1973-04-06 12:34:09

Member Avatar
Member Avatar
+0 forum 2

The End.