Dim strSql as string = "Select * from tblStocks where Expiry_Date <= Date()" Thank you for the help.
Dim Date1 As Date = Date.Today.ToString("yyyy-MM-dd") Dim adapter As New MySqlDataAdapter("SELECT Expiry_Date FROM productsdb where Expiry_Date <= '" & Date1.AddDays(30).ToString("yyyy-MM-dd") & "' ", conn)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)