# Turn D/M/YYYY into YYYY/MM/DD

**URL:** https://community.mp3tag.de/t/turn-d-m-yyyy-into-yyyy-mm-dd/9074
**Category:** Export
**Created:** [October 3, 2009, 10:09am UTC](https://community.mp3tag.de/t/turn-d-m-yyyy-into-yyyy-mm-dd/9074 "2009-10-03T10:09:41Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![supertagger](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/3ec8ea/32.png) [@supertagger](https://community.mp3tag.de/u/supertagger)
#### Post date: [October 3, 2009, 10:09am UTC](https://community.mp3tag.de/t/turn-d-m-yyyy-into-yyyy-mm-dd/9074/1 "2009-10-03T10:09:41Z")

</div>

Hi everyone,

I am trying to create a list of albums in txt mode, one line per album with the date-modified date in the front, like this:

2009-9-8 Electronica - Daft Punk - Homework

My script:

```
$filename(albums-only.txt)
$loop(%_folderpath%,1)$regexp(%_file_mod_date%,(\d{1,2})/(\d{1,2})/(\d{4}),$3-$1-$2) %genre% - $if2(%albumartist%,%artist) - %album% '['$replace(%_codec%,Free Lossless Audio Codec,FLAC)']'
$loopend()

```

I tried to use the "iflonger" as well as the "ifgreater" function inside the regexp function, but that does not seem to work. How can I have a ZERO precede all those days and months that are less than "less than 10".

Result should be:

2009-09-08....

as well as

2009-10-22 and not 2009-010-022

If anyone knows how to do this, please let me know!

Thank you. 🙂

---

_[View the full topic](https://community.mp3tag.de/t/turn-d-m-yyyy-into-yyyy-mm-dd/9074)._
