i made a button that would input the current date and time into a database in sql
Dim curDate As DateTime = DateTime.Now
Dim regDate As String = curDate.ToString("yyyy-MM-dd HH:mm:ss")
qr = "Insert into sales (SaleDate) Values ('" & regDate & "')
it worked on another button that's on another form but i got this error on a diff button that's on a diff form
i tried doing this
qr = "Insert into sales (SaleDate) Values ('" & DateTime.Now & "')
but it didn't work