Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim YourString As String = "Just some text (1/1/2005 ) between (not a date here) dates.(2/4/2005) End of text."
Dim a As ArrayList = RTUtils.GetValsFromText(YourString, "(", ")")
For Each item As String In a
If IsDate(Trim(item)) Then
Response.Write(item)
Response.Write("<br>")
End If
Next
End Sub
Public Function GetValsFromText(ByVal sText As String, ByVal char1 As String, ByVal char2 As String) As ArrayList
Dim lst As New ArrayList
Dim arr1() As String = sText.Split(char2)
For Each sItem As String In arr1
Dim arr2() As String = sItem.Split(char1)
If arr2.Length >= 2 Then
lst.Add(arr2(arr2.Length - 1))
End If
Next
Return lst
End Function