Add Day/Month/Year to Filename

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
g3rman
Donor
Posts: 14
Joined: 24 Oct 2013, 16:14

Add Day/Month/Year to Filename

Post by g3rman »

I would like to rename files to the following format. Any help would be appreciated:

Firefly - S01E01 (22 March 2008).avi

My problem is getting the month to display as the name of the month rather than the numeric notation.
g3rman
Donor
Posts: 14
Joined: 24 Oct 2013, 16:14

Re: Add Day/Month/Year to Filename

Post by g3rman »

Figured it out myself:

{n} - {S00E00} ({airdate.format("dd MMMM yyyy")})
User avatar
rednoah
The Source
Posts: 19128
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add Day/Month/Year to Filename

Post by rednoah »

Good job! I guess you had to look into the JavaDocs for that one! :)
:idea: Please read the FAQ and How to Request Help.
Post Reply