logo
search
Formatting Issues

How to Prevent Excel from Changing AWS Athena Timestamps in CSV

Olivia MillerOlivia Miller Oct 14, 2026 869 views

Question details

The user wants to stop Excel from automatically altering the 24-hour timestamp format when opening CSV files downloaded from AWS Athena.

How to Prevent Excel from Changing AWS Athena Timestamps
Product
Microsoft Excel
Device & OS
Windows
Scenario
Opening downloaded CSV files containing AWS Athena timestamps directly in Excel.
Observed behavior
Excel automatically converts original 24-hour timestamps (e.g., 2023-06-17 01:55:02.000) into a 12-hour custom display based on default system settings.
Before you start

Close Microsoft Excel before making changes to your Windows regional settings to ensure the new time format is applied properly when you reopen your CSV file.

Solution 1Recommended

Adjust Windows Regional Time Settings

Since Excel relies on your system's regional settings to display dates and times, changing the default Windows time format to a 24-hour format prevents Excel from overriding your AWS Athena timestamps.

When you open a CSV file directly in Excel, the software automatically parses data based on your computer's local date and time preferences. Modifying this globally in Windows ensures the formatting remains intact without needing to manually reformat cells every time.

1
Open Windows Settings

Press 'Windows key + I' on your keyboard to open the Windows Settings application.

2
Navigate to Date & Time

Select 'Time & language' from the settings menu, and then click on 'Date & time'.

3
Access Regional Formatting

Scroll down and click on 'Date, time & regional formatting' (or 'Language and region' depending on your Windows version), then select 'Change data formats'.

4
Set 24-Hour Format

Change both the 'Short time' and 'Long time' dropdowns to a 24-hour format option (such as 13:55 or 13:55:02). Reopen your CSV file in Excel to see the corrected formatting.

Adjust Windows Regional Time Settings
Format Applied Automatically: Once your Windows settings are updated, Excel will display all newly opened CSV timestamps in the correct 24-hour format automatically.
Effortless Data Import

Open CSV Files without Losing Timestamp Formatting in WPS Office

WPS Spreadsheets provides an intuitive Text Import Wizard that allows you to specify column data types when opening CSV files. By setting your AWS Athena timestamp column as Text during import, you completely avoid unwanted automatic time format conversions.

  1. 1. Launch WPS Spreadsheets: Open WPS Office and create a new blank spreadsheet.
  2. 2. Initiate Import: Navigate to the 'Data' tab, click on 'Import Data', and select 'Import Data' again from the dropdown menu, then choose 'From Text'.
  3. 3. Select Your File: Browse your computer for the AWS Athena CSV file and open it.
  4. 4. Configure Delimiters: In the Text Import Wizard, select 'Delimited', check the box for 'Comma', and click 'Next' to proceed to the final step.
  5. 5. Format Column as Text: Click on your timestamp column in the preview window, choose 'Text' under the Column Data Format options, and click 'Finish'.
Precise control over imported data formats via the Text Import Wizard.Highly compatible with Microsoft Excel (.xlsx, .xls, .csv) formats.Free to use with a familiar, easy-to-navigate interface.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel automatically change my CSV timestamps?

By default, Excel parses recognized dates and times in CSV files according to your Windows regional settings. If your system clock is set to a 12-hour format, Excel will automatically convert any 24-hour timestamps to match your system preferences.

Can I fix the timestamp format without changing my Windows settings?

Yes. Instead of double-clicking the CSV file to open it directly, use the 'From Text/CSV' import feature located in the Data tab. This allows you to define the timestamp column as Text during the import process, completely preventing Excel from altering the format.

Does saving the CSV in Excel permanently alter the AWS Athena timestamps?

If you open the CSV directly and Excel applies its 12-hour formatting, saving and overwriting the file will permanently alter the timestamps to the new format. It is highly recommended to import the data safely or adjust regional settings before saving.