yongtaiyu

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年7月20日

摘要: 常用C#函数表出处:本站整理 作者:佚名 日期:2007-12-04 评论(0)条学C#就是记住.net里面三千过函数怎么用就可以了: 下面是一些常用的函数基本上在VS2005 中你只要知道表这么一个功能就可以了。VS的代码提示非常方便1、DateTime 数字型 System.DateTime c... 阅读全文
posted @ 2012-07-20 15:34 yongtaiyu 阅读(177) 评论(0) 推荐(0) 编辑

2012年7月9日

摘要: sqlserver中实现split分割字符串函数常用的.IF OBJECT_ID (N'fn_split') IS NOT NULL DROP FUNCTION fn_splitgoCREATE function dbo.fn_split ( @inputstr varchar(8000), @se... 阅读全文
posted @ 2012-07-09 21:57 yongtaiyu 阅读(1561) 评论(0) 推荐(0) 编辑

2012年7月6日

摘要: usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem.Diagnostics;publicpartialclassCountTime:System 阅读全文
posted @ 2012-07-06 09:31 yongtaiyu 阅读(277) 评论(1) 推荐(0) 编辑

2012年6月28日

摘要: public int GetAgeByBrithday(Date birthday){int age=-1;Date today=new Date();int todayYear=today.getYear();int todayMonth=today.getMonth()+1;int todayDay=today.getDate();int birthdayYear=birthday.getYear();int birthdayMonth=birthday.getMonth();int birthdayDay=birthday.getDate();if(todayYear-birthdayY 阅读全文
posted @ 2012-06-28 15:55 yongtaiyu 阅读(687) 评论(0) 推荐(0) 编辑

摘要: /** * @param date1 * 需要比较的时间 不能为空(null),需要正确的日期格式 ,如:2009-09-12 * @param date2 * 被比较的时间 为空(null)则为当前时间 * @param stype * 返回值类型 0为多少天,1为多少个月,2为多少年 * @re... 阅读全文
posted @ 2012-06-28 15:47 yongtaiyu 阅读(584) 评论(0) 推荐(0) 编辑