Live Chat Icon For mobile
Live Chat Icon

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

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

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

Please submit your question and answer.