son2xp2go son2xp2go - 1 year ago 103 Question

VB.NET How to compare string date

I have a string of dates formatted like

September 27, 2016
. How can I compare that to today's date so that I can get the difference in days?

Answer Source
Dim diff = DateTime.Now - DateTime.Parse("September 27, 2016")
MsgBox diff.Days 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download