When running a report I want the start and end date parameters to default to the most recent Monday as the start and the next Sunday as the end date?
This is what I have working for something similar which is the first day of last month and the last day of last month...
First Day of Last Month
= Today().AddDays(CDbl(1 - Today().Day)).AddMonths(-1)
Last Day of Last Month
= Today().AddDays(CDbl(- Today().Day))
And this is how I did the weekly defaults in SSRS, but I cannot figure out if the same is possible with Telerik...
Set First Day of previous week (Monday)
=DateAdd(DateInterval.Day, -6,DateAdd(DateInterval.Day, 1-Weekday(today),Today))
Set Last Day of previous week (Sunday)
=DateAdd(DateInterval.Day, -0,DateAdd(DateInterval.Day, 1-Weekday(today),Today))