参数为年月 2023-09 和2023-08,如何根据参数获取天数 比如选择2023-09 得到22,选择2023-08得到31
if(and(right($参数,2)*1=month(today())*1,left($参数,4)=year(today())),day(today()),DAYSOFMONTH(CONCATENATE($参数,"-01")))
IF(CONCATENATE(A1,"-01")=FORMAT(TODAY(),"yyyy-MM-01"),day(today()),DAYSOFMONTH(CONCATENATE(A1,"-01")))
--------------
if(month(today())=month(CONCATENATE($cs,"-01")),day(today()),day(DATEINMONTH(CONCATENATE($cs,"-01")),-1))