当前位置:跳过导航链接计算机毕业设计首页 : 技术应用 : 详细内容

ASP.NET常见日期使用方法汇总(5)

来源:转载 作者:管理员 添加时间:2011-08-29 点击数:16065
六.格式输出

格式输出

七.获得本周的周六和周日

ConvertDateToWeek    

//调用
DateTime firstdate=System.DateTime.Now;    
DateTime lastdate
=
System.DateTime.Now;
ConvertDateToWeek(date,
out firstdate,out lastdate);

八、获得当前日期是该年度的第几周

DateTime dt = Convert.ToDateTime("2006-05-01");
int weeks = dt.DayOfYear / 7 + 1;

<责任编辑:计算机毕业设计网(http://www.xiaoniu168.com)>

第1页第2页第3页第4页第5页

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网