获取odata服务中的上个月数据 [英] Get the last month data in odata services

查看:113
本文介绍了获取odata服务中的上个月数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我一直试图找到一种方法来获取上个月OData Feed的信息。我知道如果写一个具体的日期如何得到它,但我需要表达式来检测我们实际月份的最后一个月。



我尝试了什么:



到目前为止,我有这个(...)/ pwa / _api / projectdata / AssignmentTimephasedDataSet?$ filter = TimeByDay ge datetime '2016-10-01',但是上个月我必须手动设置它,我需要一个表达式来自己计算上个月。如有可能,有什么建议吗?



问候,

Pablo

Hello everybody,

I'd been trying to find a way to get the info from the last month on of an OData Feed. I know how to get it if a write the specific date but I need the expression to detect by itself the last month of the actual month we are.

What I have tried:

So far I have this (...)/pwa/_api/projectdata/AssignmentTimephasedDataSet?$filter=TimeByDay ge datetime'2016-10-01' , but the last month I have to put it manually and I need an expression that calculate the last month by itself. Any suggestion if this is possible?

Regards,
Pablo

推荐答案

filter = TimeByDay ge datetime'2016-10-01',但上个月我必须手动设置它,我需要一个表达式来自己计算上个月。有任何建议,如果可能吗?



问候,

Pablo
filter=TimeByDay ge datetime'2016-10-01' , but the last month I have to put it manually and I need an expression that calculate the last month by itself. Any suggestion if this is possible?

Regards,
Pablo


这篇关于获取odata服务中的上个月数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆