hiiiii
i have declaired a date string variable like:-
string date = DateTime.Today.ToString("dd-MM-yyyy");
i am using this variable but i don't know how to showing a color red of a date format . using c#code? .
Loading
Sanjeeb LenkaPosted Sep 2, 2013, 1:48 AM
you want to show the current date in a label with red color.
take a label and try this code:
string date = DateTime.Today.ToString("dd-MM-yyyy");
Label1.ForeColor = System.Drawing.Color.Red;
Label1.Text = date;
ranjan sahooPosted Sep 2, 2013, 1:40 AM
ranjan sahooPosted Sep 2, 2013, 1:34 AM
Sanjeeb LenkaPosted Sep 2, 2013, 1:30 AM
I didn't get your point . plz provide more details.