# How to copy "created" datestamp to "modified" of files - but not by hand?

**URL:** https://community.mp3tag.de/t/how-to-copy-created-datestamp-to-modified-of-files-but-not-by-hand/54079
**Category:** Off-Topic
**Created:** [August 15, 2021, 4:24pm UTC](https://community.mp3tag.de/t/how-to-copy-created-datestamp-to-modified-of-files-but-not-by-hand/54079 "2021-08-15T16:24:42Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 15, 2021, 6:20pm UTC](https://community.mp3tag.de/t/how-to-copy-created-datestamp-to-modified-of-files-but-not-by-hand/54079/2 "2021-08-15T18:20:37Z")

</div>

Using the file modification time is a really bad practice. I highly suggest you to change your process.

> [@Zerow](#):
>
> So does anyone know a way to automatically copy `Created` over `Modified`? And in a quick / easy way

Yes, in Powershell you get the various attributes and timestamps with:  
`$file = Get-Item C:\temp\YourFileName.mp3`

then you got three timestamps:

```auto
$file.creationtime
$file.lastaccesstime
$file.lastwritetime

```

You can assign the timestamp `.creationtime` to a variable like  
`$MyCreationTime = $file.creationtime`  
and then assign the content of this variable back to your file with  
`$file.lastaccesstime = $MyCreationTime`  
or  
`$file.lastwritetime = $MyCreationTime`

Now you have only to create a Powershell-Script which accept your selected files or do the above for the content of an entire folder or even recursive.

If you want to check the three timestamps, you can use:  
`Get-Item C:\temp\YourFileName.mp3 | select name, *time`  
If you want to check all the six timestamps (inluding the one in UTC), you can use:  
`Get-Item C:\temp\YourFileName.mp3 | select name, *time*`

---

_[View the full topic](https://community.mp3tag.de/t/how-to-copy-created-datestamp-to-modified-of-files-but-not-by-hand/54079)._
