MBS writing ID3 tag "Year" problem

I’m trying to write new data into the mp3 tags using Monkeybread Taglib class and the “Year” tag is not written.

This is my code:

Dim mp3 As New FolderItem(PadNaarSongLok, FolderItem.PathTypeURL)
if mp3 <> nil then
  
  Var tag As New TagLibFileRefMBS(mp3)
  Var dic As Dictionary = tag.Properties
  
  'Break // inspect dictionary
  
  dic.Value("TITLE") = tfTitle.Text
  dic.Value("TRACK") = 1
  dic.Value("YEAR") = tfyear.Text.ToInteger
  dic.Value("ARTIST") = tfArtist.Text
  dic.Value("ALBUM") = tfAlbum.Text
  dic.Value("COMMENT") = tfOpmerkingen.Text
  dic.Value("GENRE") = tfGenre.Text
  
  tag.SetProperties(dic)
  
  If tag.Save Then
    MsgBox "Tag saved OK"
  Else
    MsgBox "Failed to save"
  End If
  
end if

isn’t the field for YEAR named TDRC internally?

You may see if you read an existing mp3 with the field.

Hi Christian,

Thanks for the quick reply. I noticed through the example program that came with the plugins download that it used the field DATE. When I changed YEAR with that, it worked!