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
shreyas adikumar
NA
53
5.2k
compare time with current time
Sep 28 2018 2:54 AM
hi, I am trying with comparing time with current time using if statement output is going wrong can I know what is the problem.
string minute = "15";
string minute2 = "20";
string minute3 = "27";
string minute4 = "02";
TimeSpan first = TimeSpan.Parse(minute);
TimeSpan second = TimeSpan.Parse(minute2);
TimeSpan Third = TimeSpan.Parse(minute3);
TimeSpan fourth = TimeSpan.Parse(minute4);
TimeSpan now = DateTime.Now.TimeOfDay;
if (now == first|| now == second || now == Third || now == fourth)
{
//matched
}
else
{
}
}
can I please know where I went wrong.
Reply
Answers (
6
)
How to reference the Microsoft. Projectoxford.Speechrecognit
Web Service and jquery ajax