Log message #4108714

admad thank you meanwhile I've used a for loop in my ajax call but tomorrow I'll read the api carefully I'm so blind by now! I'm not sure how it's suppose to change date format on a batch of records... suppose I need to use a for loop right?

my javascript application is expecting a json value to be a date startDate: Sat Aug 25 2018 00:00:00 GMT+0100 (WEST) but cakephp is returning string startDate: "2018-01-12T19:55:58+00:00" is there a way I can do this from server side or I will have to loop data with javascript and make my things?

How can i run find query to search records from an array : My array is [{"category_id":1},{"category_id":4}] and i'm running query like this for($i=0; $i&lt;count($get_all_categories_p_id); $i++) { $get_all_categories_prd_id = $this->Products->find('all',array('conditions'=&gt;array('category_id IN'=&gt;$get_all_categories_p_id[$i]['category_id']))); $product_List[]=$get_all_categories_prd_id; }