【发布时间】:2017-01-26 06:29:52
【问题描述】:
我被困在一个地方。 我在 Ms Access 中使用 DateDiff 它给了我正确的输出,比如
StartDate is 10-Sep-2016
EndDate is 15-Oct-2016
Total Days which I will get is 35
& months will i get is 1 Month
DateDiff('d',StartDate,EndDate)
**但是如果超过 30 天,我希望输出为 2 个月。 如果是 61 天,那么 3 个月等等。
**IIFFF days diffrence is
29 Days then output should be 1 months
30 Days then output should be 1 months
32 Days then output should be 2 months
60 Days then output should be 2 months
62 Days then output should be 3 months**
这在 MsAccess 的 DateDiff 中是否可行 或者是否有任何其他可用的功能,以便我可以实现相同的输出。**
【问题讨论】:
标签: ms-access ms-access-2010 ms-access-2007 datediff