Day of the Week String for "%_file_mod_datetime%":
$replace($mod($div($add(%_file_mod_datetime_raw%,$mul($ifgreater(86400,%_file_mod_datetime_raw%,'+1','0'),'+63113904000'),$mul($regexp($regexp($regexp($regexp(%_file_mod_datetime%,'^.*(?<![\d])(\d{1,2}):(\d{1,2}:\d{1,2})[\W_]*(?=(?:[AP]M)?$)',$1,1),'(?<![\d])(0?[1-9]|1[0-1])(?![\d])PM',$add($regexp(%_file_mod_datetime%,'^.*(?<![\d])(0?[1-9]|1[0-1]):(\d{1,2}:\d{1,2})(?![\d]).*$',$1),12),1),'^.*(?<![\d])(?:12)AM$',00,1),'[^0-9\n]+',),'-3600')),86400),7),'0','Thursday','1','Friday','2','Saturday','3','Sunday','4','Monday','5','Tuesday','6','Wednesday')
Day of the Week String for "%_file_create_datetime%":
$replace($mod($div($add(%_file_create_datetime_raw%,$mul($ifgreater(86400,%_file_create_datetime_raw%,'+1','0'),'+63113904000'),$mul($regexp($regexp($regexp($regexp(%_file_create_datetime%,'^.*(?<![\d])(\d{1,2}):(\d{1,2}:\d{1,2})[\W_]*(?=(?:[AP]M)?$)',$1,1),'(?<![\d])(0?[1-9]|1[0-1])(?![\d])PM',$add($regexp(%_file_create_datetime%,'^.*(?<![\d])(0?[1-9]|1[0-1]):(\d{1,2}:\d{1,2})(?![\d]).*$',$1),12),1),'^.*(?<![\d])(?:12)AM$',00,1),'[^0-9\n]+',),'-3600')),86400),7),'0','Thursday','1','Friday','2','Saturday','3','Sunday','4','Monday','5','Tuesday','6','Wednesday')
I forgot to post this shortened string back in early 2025.
Note: For some reason, Mp3Tag community page keeps messing up my regexp format, such as remove the asterisks symbol after a dot. Can anyone help?
