Link to home
Start Free TrialLog in
Avatar of friskee
friskee

asked on

Separate a droplist value

I have a value that looks like this 2002-2003  when I select it from a drop down list.
when I select it from the ddlist it's value and text look like the above.
Is there a way to "separate" the value above so that I can have a start year of 2002 and an end year of 2003?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of ZeonFlash
ZeonFlash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of friskee
friskee

ASKER

Excellent-- this worked great, I didn't need the month and day though, just the years.

                       Dim dtBegin As String = str.Substring(0, 4)
                       Dim dtEnd As String = str.Substring(5, 4)

Thanks!