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


#1

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.


#2

Try $left(%date%,4)

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


#3

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


#4

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: