Dim var As String var = ds.Tables(0).Rows(0)(0) connection.Close() Dim time As DateTime = var Dim mth As Integer mth = DateDiff(DateInterval.Month, DateTime.Now, time) If mth <= 6 Then
mth = DateDiff(DateInterval.Month, time, DateTime.Now)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)