# File Modified Data and Time Question

**URL:** https://community.mp3tag.de/t/file-modified-data-and-time-question/17706
**Category:** General Discussion
**Created:** [February 29, 2016, 11:19pm UTC](https://community.mp3tag.de/t/file-modified-data-and-time-question/17706 "2016-02-29T23:19:05Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![LaurenBacall](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/35a633/32.png) [@LaurenBacall](https://community.mp3tag.de/u/LaurenBacall)
#### Post date: [March 6, 2016, 11:20am UTC](https://community.mp3tag.de/t/file-modified-data-and-time-question/17706/12 "2016-03-06T11:20:03Z")

</div>

> [@DetlevD](#):
>
> See there ... maybe it works still nowadays ...  
> [File-Datum zuweisen / aus Tag generieren](https://community.mp3tag.de/t/15970/4)
> 
> DD.20160306.1125.CET

Devlev, _you're amazing._ This VBS script is beautiful with the thoughtful auto popup dialogs and everything. The only thing I changed was removing the opening of the Explorer window, since it doesn't seem to open the music directory anyway.

I did some testing and now I've added the following formatting as a custom tag to my regular formatting action to store the original date modified timestamps for my collection:

```
$if2(%last_file_mod_datetime%,%_file_mod_datetime%)

```

This essentially solves the problems of ReplayGain thread I posted! Now I can apply RG in foobar2000 and then restore the original timestamp using Mp3Tag. Perfect. Thanks so much 🙂

---

_[View the full topic](https://community.mp3tag.de/t/file-modified-data-and-time-question/17706)._
