Yes.
Try this more verbose approach:
DateSerial(Year([Create_Date]),Month([Create_Date]),Day([Create_Date]))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
HI there, I have a Create_Date in sql that results: 2023-03-08 09:58:05.4470000.
I connect the datatabse to SQL backend but would I would like to convert theCcreate_date to the date format mm/dd/yyyy or however 10 character date format that possible.
Any help is appreciated. thank you in advance.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Yes.
Try this more verbose approach:
DateSerial(Year([Create_Date]),Month([Create_Date]),Day([Create_Date]))
I'm still getting Data Type Mismatch in criteria expression.
That suggests you have a string, then, only formatted to look like a date. That happens when you have a DateTime2 datatype in SQL Server, and you use the basic SQL Server driver to connect to the SQL Server database. To make Access recognize it as a date, you'll need to install the newer ODBC driver.