日期的格式是20240901这样子的
把B4转化为日期格式 在减
todate(date(left(B4,4),mid(B4,5,2),right(B4,2)))-364
-----------
最后在格式化一下
format(todate(date(left(B4,4),mid(B4,5,2),right(B4,2)))-364,"yyyyMMdd")
FORMAT(DATEDELTA(CONCATENATE(left("20240901",4),"-",mid("20240901",5,2),"-",right("20240901",2)),-364),"yyyyMMdd")