i have a event page that displays all upcoming birthdays,
if birthday is today--it will display today,if tomorrow it will display tomorrow..i for other month birthdays i want to display month name also..my code is like this
if (bthday == DateTime.Today.Date.ToShortDateString())
{
lblDate.Text = "Today";
}
else if (bthday== DateTime.Today.AddDays(1).ToShortDateString())
{
lblDate.Text = "Tomorrow";
}
else
{
lblDate.Text = dt1.ToString("dddd dd, MM");
}
AS you see it will display days name. i want it should display month name also