Change Date Created Modified Other Windows?
In this article
Yes, you can change the date created and date modified attributes of files and folders on Windows, but the method depends on the version of Windows you are using. On Windows 10 and Windows 11, there is no built-in graphical tool to edit these timestamps directly, but you can use File Explorer's Properties dialog to change the date modified (and sometimes the date created) by changing the system clock, or you can use PowerShell or third-party utilities for precise control.
Why Would You Want to Change File Dates?
People often need to change file dates for legitimate reasons:
- Organization: When you copy old photos or documents from a scanner or a camera, the date created may reflect the copy date instead of the original date. Adjusting it helps keep your library sorted correctly.
- Backup and migration: After moving files between drives or restoring from a backup, timestamps may be off. Correcting them keeps your file system consistent.
- Workflow: Some software sorts files by date modified, and you may want a file to appear at the top of a list for a presentation or a report.
- Legal or archival reasons: In some cases, you might need to correct an erroneous timestamp on a document that was mislabeled by a device or a sync tool.
It is important to note that changing file dates can affect how other programs and users perceive the file's history. It is not a way to hide unauthorized changes—system logs and other metadata may still reveal the true history.
How Windows Stores File Dates
Windows (like most operating systems) maintains three main timestamps for each file and folder:
- Date created: The moment the file was first created in the current location. When you copy a file to a new folder, Windows sets a new creation date for the copy, even though the original keeps its own.
- Date modified: The last time the file's content was changed. This is updated whenever you save over the file.
- Date accessed: The last time the file was opened or read. This is not shown in the default Properties dialog but can be viewed with advanced tools.
These timestamps are stored in the file system (NTFS, FAT, exFAT, etc.) and are part of the file's metadata. On NTFS, the timestamps are stored in the Master File Table (MFT) and have a resolution of 100 nanoseconds, though the displayed precision is usually to the second.
Changing Dates Using File Explorer (Limited)
The built-in Properties dialog in Windows 10 and 11 does not offer a direct field to edit the date created or date modified. However, there is a workaround that works for the date modified (and sometimes date created) if you change the system clock:
- Close the file you want to change.
- Open the Windows Settings (Win + I) and go to Time & Language > Date & Time.
- Turn off Set time automatically.
- Manually set the date and time to the value you want the file to show as modified.
- Right-click the file and select Properties. Go to the Details tab (or the General tab in older versions) and click Apply or OK without making any changes. This action may update the file's modified timestamp to the current system time.
- Repeat for each file, then restore the correct time and re-enable automatic time.
This method is tedious and unreliable. It often only updates the date modified, and it may not work on all systems because some applications update the timestamp only when content changes. It is not recommended for more than one or two files.
Using PowerShell to Change Dates
PowerShell is a more reliable built-in method. You can use the Get-Item and Set-ItemProperty cmdlets to change all three timestamps. Here is an example:
# Change the date created of a file $file = Get-Item "C:\Users\YourName\Documents\report.docx" $file.CreationTime = "2023-05-15 10:30:00" $file.LastWriteTime = "2023-05-16 14:45:00" $file.LastAccessTime = "2023-05-17 09:00:00" $file | Set-ItemProperty -Name CreationTime -Value $file.CreationTime $file | Set-ItemProperty -Name LastWriteTime -Value $file.LastWriteTime $file | Set-ItemProperty -Name LastAccessTime -Value $file.LastAccessTime
You can also use a one-liner for a single file:
(Get-Item "C:\path\to\file.txt").CreationTime = "2023-01-01 12:00:00"
For folders, the same commands work, but you may need to use Get-Item on the folder path. To change dates for multiple files in a folder, you can use a loop:
Get-ChildItem "C:\MyFolder\*.jpg" | ForEach-Object { $_.CreationTime = "2023-01-01 08:00:00"; $_.LastWriteTime = "2023-01-02 08:00:00" }PowerShell changes the timestamps immediately, and you do not need to restart anything. However, you must run PowerShell as an administrator if you are modifying files in protected system directories.
Using Third-Party Tools
If you need a graphical interface or want to change dates in bulk with more control, several free and paid utilities exist. Some popular ones include:
- BulkFileChanger (by NirSoft) – a free portable tool that lets you modify timestamps of many files at once.
- Attribute Changer – a free tool that integrates with the right-click context menu.
- NewFileTime – a free tool that can set dates based on the file's original date or a custom date.
These tools work by directly editing the file system metadata, similar to PowerShell, but they provide a user-friendly interface and batch processing. Always download such tools from the official developer's website to avoid malware.
Common Problems and Limitations
Changing file dates is not always straightforward. Here are some issues you might encounter:
- File in use: If a file is open or locked by another program, Windows will not allow you to change its timestamps. Close the file first.
- Permissions: You may need administrator rights to change timestamps on files in system folders or on other users' files.
- File system differences: On FAT32 and exFAT drives, the timestamp resolution is only 2 seconds, and the date created may be limited to the nearest second. NTFS has a much higher resolution.
- Cloud sync and versioning: If the file is synced to OneDrive, Google Drive, or another cloud service, changing its local timestamp may be overwritten by the cloud version. The cloud service may also log the change, so the original timestamp is not truly hidden.
- No undo: There is no built-in undo for timestamp changes. If you make a mistake, you must manually set the correct values again.
Frequently Asked Questions
Can I change the date created on a file in Windows 11?
Yes, you can change the date created on Windows 11 using PowerShell or third-party tools. The built-in Properties dialog does not allow direct editing, but the same PowerShell commands work on Windows 11.
Does changing the date modified also change the date created?
No, they are separate attributes. Changing one does not affect the other unless you explicitly set both. In PowerShell, you must set each property individually.
Will changing file dates affect file content?
No, changing timestamps only modifies metadata, not the file's content. The data inside the file remains untouched.
Is it possible to change the date created of a folder?
Yes, you can change the date created of a folder using the same PowerShell commands. However, note that the folder's creation date is also used to determine the creation date of files inside it if they are moved or copied, so be careful.
Can I change the date created of a file on a network drive?
It depends on the network file system. If the drive is NTFS and you have write permissions, you can use PowerShell or third-party tools. If it is a FAT/exFAT drive or a network share with restricted permissions, it may not work.
Will changing the date modified make a file appear as the most recent in a folder?
Yes, if you sort by date modified, the file will appear at the top (or bottom, depending on sort order) according to the new timestamp. This is a common reason people change it.