Convert a date and time to text suitable for use in an SQL query, including date delimiters. Uses the DbConnect object's SQLStatementFormat setting to determine the correct Jet or MSSQL date delimiters
The date
Dim d as Date d = #23/2/1982 13:40 PM# Debug.Print xf.DbConnect.DateTimeToSQLText(d) #23 Feb 1982 13:40 PM# (in Australia!)