August 25, 2009 at 1:10 am
I need a default Values of Date formulars for "Month" and "Year" as some of my parameters in my report.
e.g. In my Date formular "Day" parameter is also one of my report parameters and I have a formular that works perfect for this parameter to give me the previous date day "=DateAdd(DateInterval.Day, -1, Today)"
Please assist me with current "Month" and "Year" formular
Your assistance will be gladly accepted
August 26, 2009 at 2:36 am
You can use the DatePart function to extract components of a date.
See here
August 26, 2009 at 4:57 am
or is the question -
how do i get current date i.e select getdate() ?
Ells.
😎
August 26, 2009 at 8:03 am
you can use MONTH and YEAR function.
August 27, 2009 at 1:47 pm
Try this:
Month(Parameters!MyDate.Value)
Year(Parameters!MyDate.Value)
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply