摘要: DateTime dt = DateTime.Now;Label1.Text = dt.ToString();//2005-11-5 13:21:25Label2.Text = dt.ToFileTime().ToString();//127756416859912816Label3.Text = ... 阅读全文
posted @ 2015-12-17 23:21 nele 阅读(528) 评论(0) 推荐(0) 编辑
摘要: 先看效果这个其实用c#实现起来比较简单: Sides = bllSession.IArticleBLL.GetList("") .Select(a => a.Time) .GroupBy(a => a.GetDateTimeFormat... 阅读全文
posted @ 2015-12-17 23:16 nele 阅读(441) 评论(0) 推荐(0) 编辑
摘要: DATE_FORMAT(`addtime`,'%Y-%m-%d')时间格式转成字符串time_format('1924-01-02', '%Y-%m-%d') 字符串转成时间格式CONVERT(addtime,DATE),CHAR) 时间格式转成字符串格式去除日期中的小时分钟...UPDATE ht... 阅读全文
posted @ 2015-12-17 23:08 nele 阅读(3279) 评论(0) 推荐(0) 编辑
摘要: 格式规范的完整形式:{index [,width][:formatstring]}index是此格式程序引用的格式字符串之后的参数,从零开始计数;width(可选) 是要设置格式的字段的宽度,width取正数表示结果右对齐,取负数表示结果左对齐;formatstring(可选),包含有关设置类型格式... 阅读全文
posted @ 2015-12-17 14:20 nele 阅读(3937) 评论(0) 推荐(0) 编辑