There is a possible simplification for the conversion of datetime from ISO 8601 to RFC 5322/2822/822 ...
$num($mid(%_datetime%,9,2),1)' '$regexp('01Jan02Feb03Mar04Apr05May06Jun07Jul08Aug09Sep10Oct11Nov12Dec','^.*'$mid(%_datetime%,6,2)'(\w\w\w).*$','$1')' '$left(%_datetime%,4)' '$mid(%_datetime%,12,8)ISO 8601
2009-02-01T07:12:53
2009-02-01 07:12:53
Date RFC 5322/2822/822
Sun, 1 Feb 2009 07:12:53 GMT (obsolet)
Sun, 1 Feb 2009 07:12:53 +0000
1 Feb 2009 07:12:53 +0000
1 Feb 2009 07:12:53
The Mp3tag scripting code from above converts ...
From:
2009-02-01 07:12:53
To:
1 Feb 2009 07:12:53
Because Mp3tag does not provide datetime calculations, it is not possible to detect the name of the weekday from a given date automatically.
But this is not crucial, because the RFC quasi standard proposals make the weekday optional, also the time zone is optional.
If you need to set your specific time zone, then it can be added to the converted RFC datetime string, for example ...
1 Feb 2009 07:12:53 +0100
DD.20120610.0735.CEST
There I have published an action group, which computes the number and the name of a weekday, for a given ISO date ...
Can you add a script function for date processing?
DD.20140316.1717.CET