How to Get an Updated Copy of a File with an Old Date Stamp on a USB Flash Drive

Abstract: Update outdated file timestamps on USB drives using PowerShell or third-party tools without altering file content.

Created: 2026-09-03 by
You cannot directly edit the "Date modified" timestamp in Windows Properties because the field is read-only. To update a file's date stamp on a USB drive, you must either copy it to your computer, modify it using third-party tools or command-line utilities, and then copy it back. Alternatively, you can use PowerShell commands to manipulate timestamps without changing file content. This process ensures your USB files reflect current activity while preserving data integrity.

Understanding File Timestamps

File systems like NTFS, FAT32, and exFAT store three primary timestamps for every file: Created, Modified, and Accessed. When you view properties in Windows Explorer, the "Date modified" field reflects when the file's content was last changed. Unlike some Unix-based systems, Windows does not provide a native graphical interface button to manually set these dates. This limitation often causes confusion when users expect to right-click and change the date directly. If you are dealing with a corrupted USB drive that exhibits strange behavior, such as files appearing with incorrect dates due to filesystem errors, you might need to address underlying storage issues first. For more information on resolving hardware-level problems, see How to Fix Corrupted USB Drive: A Step-by-Step Guide. However, if the drive is healthy but the timestamps are simply outdated, the following methods will allow you to update them accurately.

Method 1: Using PowerShell to Update Timestamps

PowerShell provides built-in cmdlets that can modify file attributes without altering the actual data inside the file. This is the safest method for most users because it requires no additional software installation. You can access this by opening the Start menu, typing "PowerShell," and selecting "Run as administrator." To update the modification date of a specific file, use the Set-ItemProperty cmdlet. First, locate the full path to your file on the USB drive. It is crucial to remember that USB drives often appear under letters like E:, F:, or G:. Replace the placeholder path in the example below with your actual file location.
Set-ItemProperty -Path "E:\Folder\YourFile.txt" -Name LastWriteTime -Value (Get-Date)
This command sets the LastWriteTime attribute to the current system time. If you want to set a specific historical date instead of the current time, replace (Get-Date) with a formatted string, such as "2023-01-01 12:00:00". Note that this only changes the metadata; the binary content of the file remains untouched. For bulk updates, you can pipe a list of files into this command. For instance, to update all text files in a directory, you could use:
Get-ChildItem -Path "E:\Folder" -Filter "*.txt" | Set-ItemProperty -Name LastWriteTime -Value (Get-Date)
Be cautious when running bulk operations. Always verify the scope of your selection before executing commands that affect multiple files. Accidental modification of system files or critical data can lead to unexpected behavior.

Method 2: Third-Party Utilities

If you prefer a graphical interface over command-line tools, several free utilities exist specifically for manipulating file timestamps. Programs like "Attribute Changer" or "Touch" allow you to right-click any file and select options to set creation, modification, or access times. These tools integrate with the Windows context menu, making them user-friendly for those uncomfortable with coding. When using third-party software, ensure you download from reputable sources to avoid malware. Some antivirus programs may flag these tools as potentially unwanted applications because they modify system attributes. Once installed, the process is straightforward: right-click the file on your USB drive, choose the utility from the menu, and input the desired date and time. It is important to note that these tools do not change the file's content. They only adjust the metadata stored in the file system's master file table (MFT) or directory entry. This distinction is vital if you are archiving documents where legal or professional standards require accurate provenance tracking.

Method 3: Copying and Re-saving

A simple, albeit less precise, method involves copying the file to your local hard drive, opening it in an editor, and saving it again. When you save a file in most applications, the operating system automatically updates the "Date modified" timestamp to the current moment. You can then copy the updated file back to the USB drive. However, this method has significant drawbacks. First, it requires the file to be editable in a text or binary format. Images, videos, or compiled executables cannot be "saved" in a way that preserves their original structure while updating the date. Second, this process creates a new file instance, which may alter other metadata such as author names or digital signatures. Additionally, if your USB drive is formatted as RAW, standard file operations may fail. Before attempting to manage file dates, ensure your drive is properly formatted. Refer to Converting flash drive from RAW to exFAT and restoring its original storage capacity if you encounter filesystem compatibility issues.

Preferring Original Date Stamps

Sometimes, you may wish to preserve the original date stamp rather than update it. This is common when transferring files between systems where you want to maintain chronological accuracy. While Windows does not offer a direct "preserve date" checkbox during copy operations, you can achieve this by using command-line tools like robocopy with specific flags. Using robocopy /COPY:DAT copies Data, Attributes, and Timestamps. This ensures that the destination file retains the exact same creation and modification times as the source. This technique is particularly useful for backup scenarios where temporal integrity is more important than recency.

Frequently Asked Questions

Can I change the creation date of a file in Windows?

Yes, but not through the standard Properties dialog. You must use PowerShell's Set-ItemProperty cmdlet with the CreationTime parameter, or employ third-party tools like Attribute Changer. Standard GUI interactions only allow viewing, not editing, these fields.

Will updating the date stamp delete my file content?

No. Modifying timestamps via PowerShell or third-party utilities only changes metadata. The actual data bytes remain intact. However, re-saving a file in an application does write new data, so be mindful of which method you choose.

Why does my USB drive show wrong dates after formatting?

If a drive is formatted incorrectly or becomes corrupted, the filesystem may fail to record timestamps accurately. In such cases, fixing the corruption or converting the format (e.g., to exFAT) is necessary before managing individual file dates.

Is there a limit to how far back I can set a date?

Theoretically, you can set dates within the valid range of the filesystem. However, setting dates too far in the past may confuse indexing services or backup software that rely on recent modification times for synchronization.

Can I update dates on encrypted files?

Generally, no. Encrypted files (such as those protected by BitLocker or EFS) may prevent direct attribute modification until decrypted. Ensure the file is accessible and decrypted before attempting to change its timestamp.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More