HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: Adil on 2021-06-09 02:52:15

Title: Masstagger: syntax to reduce date field
Post by: Adil on 2021-06-09 02:52:15
Hi there.

Could someone please let me know what syntax I could use in Masstagger to reduce date field to four-digit year?

I know Tag Sanitizer does that, but this component has deleted more tags in my files than I specify, so I've gotten along better with Masstagger itself.

Thanks in advance.
Title: Re: Masstagger: syntax to reduce date field
Post by: Fabcore on 2021-06-09 03:26:38
There you go
$cut(%date%,4)
Title: Re: Masstagger: syntax to reduce date field
Post by: Adil on 2021-06-09 03:30:04
@Fabcore

Thank you very much!
Title: Re: Masstagger: syntax to reduce date field
Post by: MordredKLB on 2021-06-11 17:14:06
$year(%date%) would also work, and is potentially safer at handling malformed dates.
Title: Re: Masstagger: syntax to reduce date field
Post by: Adil on 2021-06-11 22:06:32
Thanks! :)
SimplePortal 1.0.0 RC1 © 2008-2021