# I want to use the modified date of the file to populate a id3 tag

**URL:** https://community.mp3tag.de/t/i-want-to-use-the-modified-date-of-the-file-to-populate-a-id3-tag/8081
**Category:** Support
**Created:** [March 13, 2009, 11:51pm UTC](https://community.mp3tag.de/t/i-want-to-use-the-modified-date-of-the-file-to-populate-a-id3-tag/8081 "2009-03-13T23:51:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![brian\_pletcher](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@brian\_pletcher](https://community.mp3tag.de/u/brian_pletcher)
#### Post date: [March 13, 2009, 11:51pm UTC](https://community.mp3tag.de/t/i-want-to-use-the-modified-date-of-the-file-to-populate-a-id3-tag/8081/1 "2009-03-13T23:51:57Z")

</div>

I have a digital recorder and would like to preserve the file modified date as this indicates when the recording was made. The recorder itself (Roland Edirol) doesn't add id3 tags to the files. I would like to use mp3tag to take the modified date and put it in an id3 tag field, maybe comments. I have tried to use a custom actions and see the option to use %\_file\_mod\_datetime% but I am unclear if I can grab it (before it changes because of the edit to the tag) and populate comments with it. If so, can someone walk me through how to do so please?

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 14, 2009, 6:17am UTC](https://community.mp3tag.de/t/i-want-to-use-the-modified-date-of-the-file-to-populate-a-id3-tag/8081/2 "2009-03-14T06:17:30Z")

</div>

> [@Brian P](#):
>
> ... I have tried to use a custom actions and see the option to use %\_file\_mod\_datetime% but I am unclear if I can grab it (before it changes because of the edit to the tag) and populate comments with it. If so, can someone walk me through how to do so please?

You can use an action or a group of actions like the following example:

Begin Actionsgroup **Save FILE\_MOD\_DATETIME to tag**

Action #1  
_Actiontype 5:_ **Format tag field**  
_Field:_ **MY\_FILE\_MOD\_DATETIME\_RAW**  
_Formatstring:_ **%\_file\_mod\_datetime\_raw%**

Action #2  
_Actiontype 5:_ **Format tag field**  
_Field:_ **MY\_FILE\_MOD\_DATETIME**  
_Formatstring:_ **%\_file\_mod\_datetime%**

End Actionsgroup **Save FILE\_MOD\_DATETIME to tag** (2 Actions)

Note:  
You have only one opportunity!  
You can resp. should run the action only once against the file, afterwards the file get the current datetime at the moment when the file has been changed by writing the tagfield into the file.

You may use the COMMENT tagfield instead or any other name of your choice to create some new tagfield.

DD.20090314.0816.CET

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:21pm UTC](https://community.mp3tag.de/t/i-want-to-use-the-modified-date-of-the-file-to-populate-a-id3-tag/8081/3 "2026-02-09T12:21:25Z")

</div>


