1.时间计算,往后加30(默认一个月的时间),sxTime表示的是在当前时间往后加几天的之后一个月 function maxDate1(){ var nowDate = new Date(); maxDate = +sxTime))); return maxDate; } 2.个格式转换,用封装好的js进行转换,转入的是new data对象才可以 var nowDate = new Date();//今天 var selectDate = new MobileSelectDate(); ));…
convert(varchar(10),字段名,转换格式)sybase下convert函数第三个参数(时间格式)比如:1.select user_id,convert(varchar(10),dayts,11) as dates from tb_user (sybase下及sql server下语句) 2.select to_char(sysdate,'yy/mm/dd') as d from dual (oracle下语句) 转换格式:0或100 month dd yyyy hh:…