# More options to set timestamp attributes

**URL:** https://resource.dopus.com/t/more-options-to-set-timestamp-attributes/34903
**Category:** Help & Support
**Created:** [March 16, 2020, 11:25pm UTC](https://resource.dopus.com/t/more-options-to-set-timestamp-attributes/34903 "2020-03-16T23:25:08Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [March 17, 2020, 9:26am UTC](https://resource.dopus.com/t/more-options-to-set-timestamp-attributes/34903/3 "2020-03-17T09:26:15Z")

</div>

Using the datetaken metadata, as lxp suggests above, is easiest if the metadata has the correct values for your files.

If not, here's a script which extracts dates from the filename and applies them to the modified timestamp. You'll need to modify it slightly to match your date/time format -- there's another example lower down the thread that shows which parts to change.

> [@File name to modified date/time?](https://resource.dopus.com/t/file-name-to-modified-date-time/11522/4):
>
> Here's a button which will do it: Updated for 2017 / Directory Opus 12: This uses proper scripting instead of kludging things through a rename script: [Filename to Modified Time.dcf](https://resource.dopus.com/uploads/default/original/3X/f/3/f35a0852dd022ed5f746866b076ce6180cf42d82.dcf) (2.0 KB) See [How to use buttons and scripts from this forum](https://resource.dopus.com/t/how-to-use-buttons-and-scripts-from-this-forum/3546/3) Sc…

---

_[View the full topic](https://resource.dopus.com/t/more-options-to-set-timestamp-attributes/34903)._
