I am trying to take a date/time field from a database. This is the code that I have been using. I know everything works except for the date format. Please let me know what the correct format is. Thanks!
strAddNew = "INSERT INTO tblLog (Date, StartTime, EndTime, CustomerID, Employee, Category, Rate, BillableHours, Billed, Notes) "
strAddNew = strAddNew & "VALUES (#" & strDate & "#, '" & strStart & "', '" & strEnd & "', '" & strClient & "', '" & strEmployee & "', '" & strCategory & "', " & strBillRate & ", " & strBillHour & ", '" & strBilled & "', '" & strNote & "');"
strAddNew = "INSERT INTO tblLog (Date, StartTime, EndTime, CustomerID, Employee, Category, Rate, BillableHours, Billed, Notes) "
strAddNew = strAddNew & "VALUES (#" & strDate & "#, '" & strStart & "', '" & strEnd & "', '" & strClient & "', '" & strEmployee & "', '" & strCategory & "', " & strBillRate & ", " & strBillHour & ", '" & strBilled & "', '" & strNote & "');"