Hey guys,

I need help. See, im trying to compare dates. if say, deadline is set and if the user is over the set deadline, it should display a message box saying that he passed his deadline. what i have so far is:

If Date.Today > txtDeadline.Text Then

Msgbox.Show("You've passed the deadline set by the system. You're pretty much f*cked")

Else

End if

Recommended Answers

All 3 Replies

Resolved the issue.

just change the date.today to Format(DateAdd(DateInterval.Day, -1, Now()), "yyyyMMdd")

I hope this helps anyone.

And also please Mark the thread as solved.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.