var v0 = ABS_DATESTRING($DateTime.Today,"yyyy/MM/dd")
var v1 = v0+" 09:00:00"
var time = new Date(v1);
var b = 30;
time.setMinutes(time.getMinutes()+b, time.getSeconds(), 0)
ABS_DATESTRING(time,"HH:mm:ss")
其他例子:
var
t1 =
'08:00'
;
var
t2 =
'09:00'
;
var
c1 = Date.parse(
'2008-08-08 '
+t1);
//'2008-08-08'这个日期随便给
var
c2 = Date.parse(
'2008-08-08 '
+t2);
if
(c1 > c2) {
alert(
't1大于t2'
);
}
else
if
(c1 < c2) {
alert(
't1小于t2'
);
}
else
{
alert(
't1等于t2'
);
}