我正在尝试列出按工作日分组的聚会列表。所有这些数据都是JSON,每个事件都有一个时间戳。
我想显示一个标题为“ 9月10日星期一”的列表,其中包含当天的所有事件,然后显示“ 9月11日星期二”,依此类推。那些标题是从时间戳记中获得的。
有人知道该怎么做吗?谢谢
编辑:这就是JSON feed中的每个事件的样子。
{
"id": 39523,
"url": "***",
"title": "Cocktail Hour",
"content": "<p>All cocktails NAfl. 15.-</p> ",
"excerpt": [
"Bartenders preparing unique cocktails with fresh & premium ingredients"
],
"tags": [],
"custom_fields": {
"evcal_repeat": "yes",
"evcal_srow": 1536800400,
"evcal_erow": 1536804000,
"evcal_lmlink": null,
"evcal_subtitle": [
"Bartenders preparing unique cocktails with fresh & premium ingredients"
],
"featured": "no",
"evcal_lat": "12.0889603",
"evcal_lon": "-68.8992923"
},
"taxonomy_event_location": [{
"id": 1666,
"title": "Mood Beach",
"slug": "***",
"location_address": "***",
"location_lat": "12.0889603",
"location_lon": "-68.8992923"
}],
"taxonomy_event_type": [{
"id": 1216,
"title": "Club Nights"
}, {
"id": 1175,
"title": "Happy Hour"
}, {
"id": 1831,
"title": "Parties & Live Music"
}],
"attachments": [
"***"
],
"mod": "July 20, 2018"
}