How to Change Date Created and Date Modified on Windows
Changing the date created and date modified attributes of files on Windows can be essential for organization, syncing files with others, or maybe you’re developing and need specific timestamps for testing. Whatever your reason, Windows gives you the ability to alter these dates, although it requires a few steps or third-party software.
Here’s how you can change the date created and date modified properties on Windows manually:
1. Using File Properties:
– Right-click on the file and select ‘Properties.’
– Under the ‘Details’ tab, you will see the ‘Created’ and ‘Modified’ dates. However, these are typically not editable here.
2. Using PowerShell:
– Press `Windows Key + X` then click ‘Windows PowerShell (Admin)’ to open it with administrative privileges.
– To change the ‘date modified’ attribute, use the following script:
“`powershell
$filePath = “C:\Path\To\Your\File.ext”
$newDate = “MM/DD/YYYY hh:mm am/pm”
(Get-Item $filePath).LastWriteTime = Get-Date $newDate
“`
– Similarly, to change the ‘date created’ attribute:
“`powershell
$filePath = “C:\Path\To\Your\File.ext”
$newDate = “MM/DD/YYYY hh:mm am/pm”
(Get-Item $filePath).CreationTime = Get-Date $newDate
“
– Replace `”C:\Path\To\Your\File.ext”` with the actual file path and `”MM/DD/YYYY hh:mm am/pm”` with the desired date and time.
3. Third-Party Software:
– There are many free tools available online like ‘FileDate Changer’ or ‘Attribute Changer.’ Download and install a trustworthy one.
– Run the software as an administrator.
– Use its interface to locate your file and set new dates as needed.
As always, be cautious when downloading and installing third-party software. Ensure you trust the source and have verified that it is safe to use. Changing system or program files can cause unexpected behavior in some applications. It’s recommended to backup any important data before modifying file properties.