Hi friends,
I want to display the dates in the selected month.
I have two dropdownlists in my page
In the first dorpdownlist i stored
<asp:ListItem>January</asp:ListItem>
<asp:ListItem>February</asp:ListItem>
..............
<asp:ListItem>December
In the Second dropdownlist i stored
<asp:ListItem>2009</asp:ListItem>
<asp:ListItem>2010</asp:ListItem>
Now i when i click the month and year i want to display the dates in the selected month of the corresponding year.
Is there any option to display the dates like this. If anybody know please tell me.
thanks,
How to display the dates in the selected month
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Suthish NairRank #93 · 22.6K pointsPosted Feb 2, 2011, 11:41 PM EST
will give todays date.
eg: Convert.ToDateTime(DateTime.Now).ToString("dd") + "-" + drop1.SelectedItem.text + "-" + drop2.SelectedItem.textor looking for something else.
Suthish NairRank #93 · 22.6K pointsPosted Feb 4, 2011, 9:28 AM EST
So other members can easily find the answers.