Avatar of vcharles
vcharles
 asked on

Help with checking string format? (Windows App VS 2010, with VB.NET)

Hi,

I need to make sure my string s is in the following format: xxxx-xx-xxx-xxxx

How do check to make sure s is in the desired format, if not return an error message?

Or if length is 13 characters , s = 1305000200923, convert the string to 1305-00-020-0923

Thanks,

Victor
Visual Basic.NET.NET Programming

Avatar of undefined
Last Comment
vcharles

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
kaufmed

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
vcharles

ASKER
Thank You!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy