<script><BR>function c1(){<BR> var d = document.getElementsByName("s")[0].value;<BR> var b = (new Date(d)).getTime();<BR> document.getElementsByName("s")[0].value = b; <BR>}<BR>function c2(){<BR> var d = document.getElementsByName("d")[0].value;<BR> var b = new Date(d);<BR> b.setTime(d);<BR> document.getElementsByName("d")[0].value = b; <BR>}<BR></script> 转毫秒