// js获取日期时间 function getDateTime(){ var dateObj = new Date(); //表示当前系统时间的Date对象 var year = dateObj.getFullYear(); //当前系统时间的完整年份值 var month = dateObj.getMonth()+1; //当前系统时间的月份值 var date = dateObj.getDate(); //当前系统时间的月份中的日 var day = dateObj.getDay(); /
package com.goldcn.jzgmanageplat.b2b.controller; import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;import java.util.GregorianCalendar; import com.goldcn.common.utils.CommonUtils; public class aa { public static void ma
<div id="getdate"></div> <script> function getCurDate(){ var d = new Date(); var week; switch (d.getDay()){ case 1: week="星期一"; break; case 2: week="星期二"; break; case 3: week="星期三"; break; case 4:
1 <div: id="clock"></div:> 2 <script> 3 function a(clock){ 4 var now =new Date(); 5 var month=now.getMonth()+1; 6 var day=now.getDay(); 7 var s=now.getSeconds(); 8 var arr=new Array("星期日","星期一","星期二&quo