# I would like to format %\_file\_mod\_date% as YYMMDD but

**URL:** https://community.mp3tag.de/t/i-would-like-to-format-file-mod-date-as-yymmdd-but/71541
**Category:** Support
**Created:** [June 30, 2026, 6:13pm UTC](https://community.mp3tag.de/t/i-would-like-to-format-file-mod-date-as-yymmdd-but/71541 "2026-06-30T18:13:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [June 30, 2026, 6:22pm UTC](https://community.mp3tag.de/t/i-would-like-to-format-file-mod-date-as-yymmdd-but/71541/2 "2026-06-30T18:22:16Z")

</div>

The data is formatted according to the local OS settings.  
So please show us how the date looks in your OS.

In my OS it looks like this:  
 ![grafik](https://community.mp3tag.de/uploads/default/original/3X/2/5/257ee059640d3c9b6b1bc1aa0f3a39e413a916b6.png)

$num() transforms a string into a number and takes all numeric characters up to the first non-numeric character and then pads the resulting number until the length corresponds to the set number of digits.  
In your case it looks to me like the 6 is followed by a non-numeric character.

See also e.g. here:

> [@Format Date in File Name](https://community.mp3tag.de/t/format-date-in-file-name/6682):
>
> I have a %\_date% in my filename when exporting my library. But it outputs in mmddyyyy format. I'd prefer YYYY.MM.DD format. Is it possible to do that? Thanks

---

_[View the full topic](https://community.mp3tag.de/t/i-would-like-to-format-file-mod-date-as-yymmdd-but/71541)._
