摘要: C#代码中时间转换为2016-01-24 12:12:12需要如下操作: DateTime.Parse(sj).ToString("yyyy-MM-dd HH:m:ss") 但是Oracle中SQL语句中时间转换为此格式需如下操作: to_date(sj,'yyyy-mm-dd hh24:mi:ss 阅读全文
posted @ 2016-03-02 14:28 zlsyl 阅读(412) 评论(0) 推荐(1) 编辑
摘要: 1 // 注意:首先要在项目中添加引用 System.Management 2 3 using System; 4 using System.Collections.Generic; 5 using System.Linq; 6 using System.Web; 7 using System.Ma 阅读全文
posted @ 2016-03-02 14:18 zlsyl 阅读(12897) 评论(0) 推荐(1) 编辑
摘要: yyyy-MM-dd HH:mm:ss 正则表达式如下: ^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1 阅读全文
posted @ 2016-03-02 14:06 zlsyl 阅读(1678) 评论(0) 推荐(0) 编辑