Convert SAP Dates (dd.mm.yyyy) to Microsoft Access Date/Time
Question details
The user needs to convert SAP date text strings (formatted as dd.mm.yyyy) into proper Microsoft Access Date/Time values to enable date calculations like DateDiff.

- Product
- Microsoft Access / Spreadsheets
- Device & OS
- not provided
- Scenario
- Importing exported SAP spreadsheet data into a Microsoft Access database.
- Observed behavior
- SAP dates containing periods are recognized as Short Text rather than Date/Time, preventing date-based functions from working correctly.
Make sure you do not use the reserved word 'Date' as a field name in your database, and verify your system's regional date settings.
Convert Dates Using an Access Append Query
Use Access built-in functions to parse and convert the text string during the import process or within an append query.
Microsoft Access stores dates as numeric Date/Time values rather than as a display format. By manipulating the text string to a recognizable date format, Access can properly convert it.
In your Access query, use the Replace function to change periods to hyphens, and wrap it in DateValue. In the Field row of your query design, enter: CallDate: DateValue(Replace([SapDate], ".", "-")).
Ensure the destination field in your Access table is explicitly set to the Date/Time data type so it stores the numeric date value correctly.
If necessary for data integrity, keep the original SAP date value stored in a separate Short Text field alongside the new Date/Time field.

Pre-process SAP Dates in a Spreadsheet Before Import
Clean up the date formats in your SAP Excel export before importing the data into Microsoft Access.
Prepare SAP Exports Seamlessly with WPS Office
While Microsoft Access handles the database side, you often need a reliable spreadsheet tool to clean and prep SAP exports. WPS Office is a free, lightweight, and highly compatible alternative to Microsoft Office. It offers a familiar interface, making it easy to process large datasets, fix date formats, and prepare your data for database imports.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open SAP Export: Launch WPS Spreadsheet and open your SAP exported file.
- 3. Clean Date Formats: Use the built-in Find and Replace tool to format your dates perfectly before database import.

Frequently Asked Questions
Why does Access import my SAP dates as Short Text?
Access relies on system regional settings to identify dates. The 'dd.mm.yyyy' format using periods is often not recognized as a standard date pattern out of the box, causing Access to default to storing it as a text string.
Why shouldn't I name my field 'Date' in Access?
The word 'Date' is a reserved built-in function in Access that returns the current system date. Using it as a field name causes naming conflicts and syntax errors in queries, expressions, and VBA code.
Will the DateValue function work for all text dates?
The DateValue function works successfully if the text string closely resembles a recognized date format. Replacing periods with hyphens (e.g., '28-09-2022') usually helps the function accurately interpret the string as a valid date depending on your Windows regional settings.




