I have a date that I pull into my radgrid that I need to then convert to datefield so that I can color code them but whatever i do it never seems to work. how can I change this string to date.
Protected Sub myRadGridList_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGridList.ItemDataBound If TypeOf e.Item Is GridDataItem Then Dim Item As GridDataItem = CType(e.Item, GridDataItem) Dim DOB As DateTime = DateTime.Parse(Item.Cells(2).Text.ToString) If DatePart(DateInterval.Month, DOB) = DatePart(DateInterval.Month, Date.Now) Then Item.Cells(2).ForeColor = Drawing.Color.Firebrick End If End If End Sub