i'm currently making an app that needs to run a query between two dates. this app will run automatically, so i need to put the dates as today and yesterday, essentially.
Code:
Dim str As New System.Text.StringBuilder()
Dim time As String
str.Append("'")
str.Append(Date.Now.Year.ToString)
str.Append("-")
str.AppendFormat("{0:MM}",