我的API放入<div class="container bckgroud">
<div class="row">
<div class="col-md-3">
<h1>
here is test for the me
</h1>
</div>
<div class="col-md-9"></div>
</div>
</div>
的BsonDateTime。我从此API收到两个日期,分别称为startDate和endDate,但无法使用它向“周视图”添加事件。当我将startDate转换为String时,它将写入MongoDB
。
这是邮递员的内容:
Mon May 14 08:00:00 GMT+01:00 2018
这是我在Android Studio中的代码:
[
{
"Id": "5b51ab5ad09030396092b0cd",
"userId": "5b56f3c714e86f36e0433359",
"company": "Empresa 2",
"year": "2015",
"month": "May",
"day": "15",
"weekDay": "Tuesday",
"shift": "Morning",
"weekDayId": "2",
"shiftId": "1",
"hours": "8",
"startDate": "2018-05-14T07:00:00Z",
"endDate": "2018-05-14T16:00:00Z"
}
]
该事件未在任何地方出现。请帮忙。