Author Topic: Musicbee $Date(<Year>,yyyy)  (Read 512 times)

bkev

  • Jr. Member
  • **
  • Posts: 41
I've got the following custom tag of $Date(<Year>,yyyy)

This works for the most part, but for dates that are in the format dd/mm/yyyy it doesn't work.

Is this because MB expects the date to be in mm/dd/yyyy? If it is, is there anyway around it?

Example:
Year Tag                            Result
1965                                   1965
05/10/1970                       1970
2022-04-09                        2022
28/09/2004                       (Blank)
13/06/2008                       (Blank)


boroda

  • Sr. Member
  • ****
  • Posts: 4653
i think it's depends on your windows regional settings, only  dd/mm/yyyy,  but not  mm/dd/yyyy  is working for me (russian locale).

but i'd prefer if mb could correctly parse  mm/dd/yyyy,  dd.mm.yyyy  and  yyyy-mm-dd  depending on date part's delimiter and independently of windows regional settings.

the same for:  mm/dd/yy,  dd.mm.yy  and  yy-mm-dd
Last Edit: August 26, 2022, 12:55:43 PM by boroda

bkev

  • Jr. Member
  • **
  • Posts: 41
Thanks @boroda

I think I can fix the issue by retagging using Picard so it changes the date field to be yyyymmdd. This then fixes the view and sorting in Musicbee.