帆软日期控件设置:如果当前日期小于9号控件默认上月否则默认本月
上月几号?
if(day(today())<9,MONTHDELTA(today(),-1),today())
公式判断
小于9 展示本月 :if(day(now())<9,now(),format(MONTHDELTA(today(),-1),"yyyy-MM"))
小于9 展示上个月 :if(day(now())<9,format(MONTHDELTA(today(),-1),"yyyy-MM"),now())
-----
if(DAY(TODAY())<9,MONTHDELTA(today(),-1),today())