0

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

Edited by jerviejeb

2
Contributors
3
Replies
9
Views
4 Years
Discussion Span
Last Post by jerviejeb
0

Resolved the issue.

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

I hope this helps anyone.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.