TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
yogita dhingra
NA
31
0
compare date with today's date
Oct 5 2009 5:53 AM
string Expdate = ((Label)e.Row.FindControl("lblExpDate")).Text;
string date;
date = Convert.ToString(DateTime.Now.ToString("dd/MM/yyyy"));
if (DateTime.Compare(Convert.ToDateTime(Expdate),Convert.ToDateTime(date)) < 0)
{
((Label)e.Row.FindControl("lblStatus")).Text = "INActive";
}
else
{
((Label)e.Row.FindControl("lblStatus")).Text = "Active";
}
its not comparing can anyone tell me wht da problem with this code
Reply
Answers (
2
)
how can create help file in C#
Textbox, Border style = fixed single but the text vertical align is on top border