# Extract weekdays and month names from timestamp

**URL:** https://community.mp3tag.de/t/extract-weekdays-and-month-names-from-timestamp/13512
**Category:** Support
**Created:** [June 3, 2012, 7:28am UTC](https://community.mp3tag.de/t/extract-weekdays-and-month-names-from-timestamp/13512 "2012-06-03T07:28:59Z")
**Posts on this page:** 1
**Showing post:** 14

<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: [June 9, 2012, 7:57am UTC](https://community.mp3tag.de/t/extract-weekdays-and-month-names-from-timestamp/13512/14 "2012-06-09T07:57:50Z")

</div>

> [@DetlevD](#):
>
> Please would you be so kind and show a preview file, how the end product podcast file, including example content, should look like?

Absolutely, see attached zip file. Includes sample mp3 and flac files in a directory, the Export template, and the Export output XML. Note: things like the formatting of the %title% will be changed for the final release, and strings like 'YOUR TITLE HERE' would be edited by the user.

It should also be noted that the files to be Exported should be sorted by a column in Mp3Tag by the 'ReleaseTime' tag, with newest dates last.

> [@DetlevD](#):
>
> Here comes my Mp3tag Export Scripting code, that no one can pay.  
> I feel like after punching a stack of 1024 punch cards.  
> Hopefully it can help to solve your problem.

😲 What a piece of work! You've practically coded a micro application.

The code works perfectly and solves the problem, and although the Export script itself is _completely_ unreadable when all the line feeds are removed I still think I know a way of documenting what each function does when I come to making the help file on this Export script.

Mp3Tag has the quirk of still [leaving empty lines](https://community.mp3tag.de/t/11817/1) when an item in the loop is excluded, but that isn't an issue, as RSS readers don't care about blank spaces between elements.

I tried merging all the $loop code into a single line (using the $char(x) for various carriage returns and spaces) yet the empty lines still appear, however I'm not concerned, it doesn't affect anything.

From what I can tell the Export script is now ready for use. The only thing left is the required GUID tag, which a user would still have to manually tag each file with. A couple of days ago I submitted a [feature request](https://community.mp3tag.de/t/13521/1) for a $guid() function, which hopefully will be considered for the next development build of Mp3Tag.

Thanks for all your efforts once again, I wouldn't have known how to accomplish such code with my limited knowledge.

[Podcast\_Export\_script\_examples\_and\_file\_samples.zip](https://community.mp3tag.de/uploads/default/original/2X/0/0d3c915b3d8ab154d96494d68a7627f5935fd8ba.zip) (57.4 KB)

---

_[View the full topic](https://community.mp3tag.de/t/extract-weekdays-and-month-names-from-timestamp/13512)._
