ASP.NET
文章平均质量分 59
cg2002
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
抓取国家气象局天气预报3天
/// /// 国家气象局天气预报 3天 /// /// public static XmlDataDocument GetCMAWeather() { //http://www.cma.gov.cn/tqyb/ //http://www.cma.gov.cn/tqyb/we转载 2006-12-08 09:20:00 · 2949 阅读 · 2 评论 -
邮件发送程序
/// /// 发送邮件方法1/// /// 接收邮件地址/// 主题/// 内容/// 发送结果public static string SendEmail(string emailTo, string subject, string body){MailMessage mailMsg = new MailMessage();//设置正文格式mailMsg.BodyFormat = MailFo转载 2006-12-15 15:57:00 · 659 阅读 · 0 评论 -
时间的格式化显示
时间的格式化显示System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.转载 2006-12-19 09:56:00 · 425 阅读 · 0 评论 -
SQL Server里面可能经常会用到的日期格式转换方法
SQL Server中文版的默认的日期字段datetime格式是yyyy-mm-dd Thh:mm:ss.mmm 例如:select getdate()2004-09-12 11:06:08.177这对于在要不同数据库间转移数据或者习惯oracle日期格式YYYY-MM-DD HH24:MI:SS的人多少有些不方便.我整理了一下SQL Server里面可能经常会用到的日期格式转原创 2007-05-23 12:51:00 · 345 阅读 · 0 评论
分享