如何使用SQL Reporting Services获取本月的最后一天 [英] How do I get the last day on the month using SQL Reporting Services

查看:109
本文介绍了如何使用SQL Reporting Services获取本月的最后一天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SQL Server Reporting Services中,如何计算当前月份的最后一天?

In SQL Server Reporting Services, how would I calculate the last day of the current month?

推荐答案

这是答案我想出了

=DateSerial(Year(Now()), Month(Now()), "1").AddMonths(1).AddDays(-1)

这篇关于如何使用SQL Reporting Services获取本月的最后一天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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