Save album date in the form of "year" instead of "year-month-day" in tags

Picard uses yyyy-mm-dd syntax for the date tag, for example 2012-10-27. Is it possible to set Picard to only save the year of the release without modifying the tag manually for each album?

I’ve found this five-year-old plugin, but Picard may now have native support.

Try $left(%date%,4)

https://picard.musicbrainz.org/docs/scripting/
https://picard.musicbrainz.org/docs/tags/

3 Likes

Does editing the file-naming setting affect tags? After adding $left(%date%,4) the year is saved in filenames.

No, that code is meant to be used in Options > Scripting. The full answer is to add the following code there:

$set(date,$left(%date%,4))

This is basically functional identical to what the plugin you linked to does :slight_smile:

2 Likes