Filter records based on Date Range + ASP.NET + Regex + Javascript
- by ASIF
Hi
I need to filter data based on a date range.
My table has a field Process date. I need to filter the records and display those in the range FromDate to ToDate.
How do I write a function in VB.NET which can help me filter the data.
Protected Shared Function ObjectInRange(ByRef obj As Object, ByVal str1 As String, ByVal str2 As String) As Boolean
Dim inRange = False
For Each prop As PropertyInfo In obj.GetType().GetProperties()
Dim propVal = prop.GetValue(obj, Nothing)
If propVal Is Nothing Then
Continue For
End If
Dim propValString = Convert.ToString(propVal)
If Regex....WHAT GOES HERE? Then
inRange = True
Exit For
End If
Next
Return inRange
End Function
Am I on the right track??