Hi all,
My brains rusted, as the end of the day is approaching..
here is a simple one for experts.
I have a string which contains string like this" 2008-2009"
I want it to split and use them further, like 2008 and 2009
i'm using Vb.net in code behind
can you please check whats wrong and lead me to a correct solution
Dim StringYear = RecievedFinancialYear
Dim StringMonth= recievedMonth
Dim partsArray As String() = StringYear.Split("-")
For i As Integer = 0 To 1
Dim Year1 As String = partsArray(0)
Dim Year2 As String = partsArray(1)
Next
I want to populate a label control based on this year.
If StringMonth='November' or 'October' then
lblYear.text=year1
else
lblYear.text=year2
end if
Thanks for the help
...
Go to the complete details ...