Date validation / verification

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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,
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top