摘要: functionGetDateDiff(startDate,endDate){varstartTime =newDate(Date.parse(startDate.replace(/-/g,"/"))).getTime();varendTime =newDate(Date.parse(endDate... 阅读全文
posted @ 2015-09-01 09:15 kobe工作室 阅读(1385) 评论(0) 推荐(0) 编辑
摘要: 方法一: private int WeekOfYear(string date) { DateTime curDay = Convert.ToDateTime(date); int firstdayofweek = Convert.ToInt32(Convert.ToDateTime(cur... 阅读全文
posted @ 2015-08-28 12:26 kobe工作室 阅读(3788) 评论(0) 推荐(1) 编辑
摘要: 阅读全文
posted @ 2015-08-20 15:38 kobe工作室 阅读(138) 评论(0) 推荐(0) 编辑
摘要: SQL类型C#类型bitbooltinyintbytesmallintshortintintbigintlongrealfloatfloatdoublemoneydecimaldatetimeDateTimecharstringvarcharstringncharstringnvarcharstri... 阅读全文
posted @ 2015-08-19 17:27 kobe工作室 阅读(269) 评论(0) 推荐(0) 编辑
摘要: var dayOfMonth = DateTime.DaysInMonth(Convert.ToInt32(year), Convert.ToInt32(month)); 阅读全文
posted @ 2015-08-10 17:24 kobe工作室 阅读(168) 评论(0) 推荐(0) 编辑
摘要: if(Request.HttpMethod.Equals("POST", StringComparison.OrdinalIgnoreCase)){POST回发的代码} 阅读全文
posted @ 2015-08-10 13:49 kobe工作室 阅读(183) 评论(0) 推荐(0) 编辑
摘要: //后端public ActionResult TighteningReport(BReportTighteningReportModel model, string rate, string weekTime, string weekEnd, string month) { ... 阅读全文
posted @ 2015-08-10 09:16 kobe工作室 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 输入年份/周次,点"计算",程序将自动计算出该年该周次的时间段: 年份://填写四位格式的年份,如:2006周次://填写要计算的周次,如1或01时间段:至//不需要填写,程序将自动计算 阅读全文
posted @ 2015-08-07 13:20 kobe工作室 阅读(1243) 评论(0) 推荐(0) 编辑
摘要: 日期判断 周 月 季 年 阅读全文
posted @ 2015-08-06 13:38 kobe工作室 阅读(2347) 评论(0) 推荐(0) 编辑
摘要: 计算两个日期天数差的函数,通用,根据指定的一个日期和相差的天数,获取另外一个日期$(document).ready(function () {//获取单元格值改变事件不需要获取焦点//备注:可以换成$(".CheckCountLen").bind("blur", function () { $("#... 阅读全文
posted @ 2015-08-06 13:31 kobe工作室 阅读(1456) 评论(0) 推荐(0) 编辑