Javascript Timestamp Calulation
Hi,
How to Add 30 min to folling code.
I am using javascript for copy doc_dt to item delevery_dt . i won't to add 30 min in delevery_dt. doc_dt and
delivery_dt are timestamp database column.
For Ex. in doc_dt item text showing me 16/02/2012 18:30
then to add 30 minite delivery_dt is 16/02/2012 19:00
function deldt()
{
function getVal(item){
if($x(item).value != "")
return parseFloat($x(item).value);
else
return 0;
}
$x('P40_DELIVERY_DT').value =
($x('P40_DOC_DT').value ) ;
}
What changes i have to do in above code to get result.