获取当月的某天
Tools.getMonthDate = function(type) { var res = false, today = new Date(), year = today.getFullYear(), month = today.getMonth() + 1, splitor = '-' month = Tools.DateUtil._fillUpData(month) switch(type) { case 'today': res = year + splitor + month + splitor + Tools.DateUtil._fillUpData(today.getDate()) break; case 'first': res = year + splitor + month + splitor + '01' break; case 'last': var date = new Date(year, month, 0) res = year + splitor + month + splitor + date.getDate() break; default:break; } return res }
------------------------------------------------------------------------------------------------------------------------------------------
需要荷兰版牛栏、荷兰美素、母婴用品的攻城师、设计师朋友,欢迎关顾【七彩母婴店】【http://qicaoyun.taobao.com】。凡是从博客园得知信息的,全店商品,均可优惠,请告知客服哦。你也可以通过淘代码【D5867219】,在淘宝搜索到我们。收藏有礼哦!