Function IsValidOrder(aString As String, Optional Delimiter As String = "->", Optional Comparitor As String = "<") As Boolean
Dim firstDate As Double
Dim secondDate As Double
On Error Resume Next
firstDate = CDate(Split(aString, Delimiter)(0))
secondDate = CDate(Split(aString & Delimiter, Delimiter)(1))
If Err Then Exit Function
On Error GoTo 0
Select Case Comparitor
Case "<": IsValidOrder = (firstDate < secondDate)
Case "=<": IsValidOrder = (firstDate <= secondDate)
Case "=": IsValidOrder = (firstDate = secondDate)
Case ">=": IsValidOrder = (firstDate >= secondDate)
Case ">": IsValidOrder = (firstDate > secondDate)
End Select
End Function