on 12-30-2021 11:37 AM
i want my "from" date parameter in crystal report to be the first date of month mentioned in "to" date parameter.how to do it pls help
Hello AliKhan.
--First date of Current Month in Query Parameter
(DATEADD(dd,-(DAY({?to})-0),{?to})) --For the month of the date selected in {?to} Parameter
(DATEADD(dd,-(DAY(getdate())-0),getdate())) -- For the First day of Current Month
--In Formula
Date(year(currentdate), month(currentdate),1)
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.