# Date transformation function requested

**URL:** https://community.mp3tag.de/t/date-transformation-function-requested/71556
**Category:** General Discussion
**Tags:** feature
**Created:** [July 2, 2026, 9:42am UTC](https://community.mp3tag.de/t/date-transformation-function-requested/71556 "2026-07-02T09:42:39Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [July 9, 2026, 3:59pm UTC](https://community.mp3tag.de/t/date-transformation-function-requested/71556/2 "2026-07-09T15:59:13Z")

</div>

I've added a scripting function `$fmtDate(fmt,x)` to format raw timestamps into human-readable dates using a user-defined format string with [Mp3tag v3.36-beta.2](https://community.mp3tag.de/t/455).

For example, the date `2001-02-03 04:05:06` can be created using `yyyy-MM-dd HH:mm:ss` where

| Format | Output |
| --- | --- |
| `yyyy` | `2001` (year) |
| `MM` | `02` (month) |
| `dd` | `03` (day) |
| `HH` | `04` (24-hour) |
| `mm` | `05` (minute) |
| `ss` | `06` (second) |

If the second parameter (timestamp) is omitted, the current timestamp is used.

---

_[View the full topic](https://community.mp3tag.de/t/date-transformation-function-requested/71556)._
