FirstDate 是我的控件名 我'${date('SUBSTRING(FirstDate,1,7)'||'-01')}'不行 '${format(DATE(year(FirstDate),month(FirstDate),1),'yyyy-MM-dd')}' 也不行 我就是想拿到控件对的年月 然后拼接一个1号 也就是用户选择日期的年月的一号作为sql的条件,用的是pg数据库
select * from 表 where 日期字段='${dateinmonth(FirstDate,1)}'
dateinmonth($FirstDate,1)
还可以直接返回1号
不是空值啊
'${CONCATENATE(MID(FirstDate,1,7),"-01")}'