var v0 = ABS_DATESTRING(O_PARAMETER.FDate,"yyyy/MM/dd")
var v_beginTime = v0 + " " + "06:00:00"
var v_endTime = v0 + " " + "09:00:00"
var v_punchTime = v0 + " " + "08:00:00"
var beginTime = new Date(v_beginTime);
var endTime = new Date(v_endTime);
var punchTime = new Date(v_punchTime);
var flag = false;
if(beginTime <= punchTime && punchTime<=endTime) {
flag = true;
}
flag
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)