hello Professional
you can do that like this..
// this is for Year
void fillYears()
{
ddlYear.Items.Clear();
for (int i = 1990; i <= DateTime.Now.Year; i++)
{
ddlYear.Items.Add(i.ToString());
}
ddlYear.Items.Insert(0, new ListItem("Year", "0"));
}
as above you can bind with
DateTime.Now.Month
and also
DateTime.Now.Date
hope this will help you
Happy to Help!!!