摘要:
1字符串与时间的互转 DateTime.TryParse将空字符串、为null或格式不正确,则转换为的DateTime所代表的值为:0001/1/1 0:00:00,此为DateTime.MinValue的值。 使用public static DateTime ParseExact(string s 阅读全文
摘要:
1配置Log4net Log4net的配置文件有几种使用方式,这里将配置log4net的部分独立出来,即关于log4net的配置独立成文件log4net.config。 1)写入Mysql log4net.config文件配置 在控制台程序中使用: 运行上面的代码,成功地将数据记录到数据库中。 2) 阅读全文