I want to replace my RadDatePicker with a RadMonthYearPicker resulting in less clutter for the page, problem is I need to get the start and end of the month selected via MonthYear picker for my query.
the statement below:
returns merely the month I choose, the day today, and the chosen year. ex return '5/13/2011'. When I want to get '5/1/2011' and '5/31/2011'
Any suggestions on how I can get the 'start' and 'end' of the month or do I stick with RadDatePicker for now? If there is a way to do this pointing me in the right direction would be much appreciated.
Thanks
the statement below:
protected void DateChange(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
{
//Session.Add("StartDate", RadDatePicker1.SelectedDate);
Session.Add("selectedMonth", RadMonthYearPicker1.DbSelectedDate);
}
returns merely the month I choose, the day today, and the chosen year. ex return '5/13/2011'. When I want to get '5/1/2011' and '5/31/2011'
Any suggestions on how I can get the 'start' and 'end' of the month or do I stick with RadDatePicker for now? If there is a way to do this pointing me in the right direction would be much appreciated.
Thanks