Hi @Shishir26
try this
here we have dates which are coming from database to datatable dtCalenderDaysFromDB(Dates whcih we want to change for CSS)
protected void calenderWrkDt_DayRender(object sender, DayRenderEventArgs e)
{
if (dtCalenderDaysFromDB.Rows.Count > 0)
{
if (!e.Day.IsOtherMonth)
{
for (int i = 0; i < dtCalenderDaysFromDB.Rows.Count; i++)
{
DateTime dtEventDT = Convert.ToDateTime(dtCalenderDaysFromDB.Rows[i]["EventDate"]);
if (dtEventDT.Equals(e.Day.Date))
{
e.Cell.ForeColor = Color.DarkGreen;
}
}
}
}
}
Hope it will help you
Thanks