摘要:
【转】C#加密算法汇总1234567891011121314151617181920212223242526方法一: //须添加对System.Web的引用 using System.Web.Security; ... /// <summary> /// SHA1加密字符串 /// </summary> /// <param name="source">源字符串</param> /// <returns>加密后的字符串</returns> public string SHA1(string source 阅读全文
摘要:
一、sql server日期时间函数 Sql Server中的日期与时间函数 1. 当前系统日期、时间 selectgetdate() 2. dateadd 在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 selectdateadd(day,2,'2004-10-15') --返回:2004-10-17 00:00:00.000 3. datediff 返回跨两个指定日期的日期和时间边界数。 selectdatediff(day,'2004-09-01','2004-09-18') --返回:17 4. d 阅读全文