//假设是日期控件
var date=new Date(this.getText());
const formattedDate=date.toLocaleString('zh-CN',{
year:'numeric',
month:'2-digit',
day:'2-digit',
hour:false,
minute:false,
second:flase,
hour12:false
});
var value='CONCATENATE(RIGHT(YEAR('+formattedDate+'),2),"-",FORMAT(MONTH('+formattedDate+'),"00"))';
console.log("value",value) //屏幕打印结果