ianr;349177 Wrote: > Just wondering if anyone has an action that will truncate the year field > to a four digit value. Using MusicBrainz, I find I'm sometimes getting a > full album release date (say 2002-04-01). I'd like to find a nice > automated way to reduce the field to simply 2002. Is it possible to > automate this?
If it's always formatted as yyyy-mm-dd (or yyyy-dd-mm) you can use a 'Format value' action, with field YEAR, set to $left(%year%, 4). This will leave normally formatted four digit dates alone. But this won't work if the date ever comes across as mm-dd-yyyy or dd-mm-yyyy or mm/yyyy or mm/dd/yy other formats. Some of those could be handled with a more involved 'Replace with regular expression' type of action, or possibly a series of them. -- JJZolx Jim ------------------------------------------------------------------------ JJZolx's Profile: http://forums.slimdevices.com/member.php?userid=10 View this thread: http://forums.slimdevices.com/showthread.php?t=53704 _______________________________________________ ripping mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/ripping
