Home All Groups Group Topic Archive Search About

Date validation / verification

Author
7 Apr 2005 1:47 PM
DSuss
I am trying to create an input box in vb.net that will verify if an
expiration date on a credit card is valid or not.  Can anyone help me convert
a string of MM/YY to a month and year format and verify against NOW( )?  Or
does anyone have another suggestion how to accomplish this?

Thanks,

Author
8 Apr 2005 6:47 AM
Cor Ligthert
DSuss,

Dim MM As String = Now.Month.ToString
Dim YY As String = Now.Year.ToString

When you want to positions year than
Dim YY As String = Now.Year.ToString.Substring(2)

I assume that the rest is a peanut.

I hope this helps,

Cor