How to highlight today’s date in Calendar Control in different color

Platform: ASP.NET| Category: Calendar

In Calendar DayRender Event

VB.NET


If e.Day.IsToday Then
	e.Cell.ForeColor = Color.Blue
	e.Cell.BackColor = Color.Pink
End If

C#


if (e.Day.IsToday) 
{
            e.Cell.ForeColor = Color.Blue;
            e.Cell.BackColor = Color.Pink;
}

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.