上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 52 下一页
摘要: string str = "2019-01"; //name: "2019-01月" str = str.Substring(str.Length - 2, 2); //把第一个0替换为空 var t = Convert.ToInt32(str).ToString(); 阅读全文
posted @ 2019-03-02 17:39 enych 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: //默认当年1月1号 ViewBag.time1 = new DateTime(DateTime.Now.Year, 1, 1).ToString("yyyy-MM-dd"); ViewBag.time2 = DateTime.Now.ToString("yyyy-MM-dd"); new Date 阅读全文
posted @ 2019-03-01 10:05 enych 阅读(4543) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-02-27 12:18 enych 阅读(0) 评论(0) 推荐(0) 编辑
摘要: private void Form1_Load(object sender, EventArgs e) { decimal dd = (decimal)11234567890.01; string ddstr = dd.ToString(); test(ddstr); } ... 阅读全文
posted @ 2019-02-26 18:11 enych 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-26 17:24 enych 阅读(192) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en" xmlns="http://www.w3.org/1999/xhtml"><head> <meta charset="utf-8" /> <title></title></head><body> <div id="list" style= 阅读全文
posted @ 2019-02-14 18:09 enych 阅读(720) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll")] static extern IntPtr SetWindowsHookEx(int idHook, keyboardHookProc callback, IntPtr hInstance, uint threadId); /// /// 安装钩子 /// ... 阅读全文
posted @ 2019-01-29 17:07 enych 阅读(2373) 评论(0) 推荐(0) 编辑
摘要: /// /// 获得固定年月日,时和分不固定 : 2019-01-01 00:00:00 /// /// public DateTime GetFixedDateTime(string Hour = "", string Minute = "") { string time1 = Da... 阅读全文
posted @ 2019-01-28 11:22 enych 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\xxx\Start = 1,2=自动,3,4=禁用 阅读全文
posted @ 2019-01-24 17:49 enych 阅读(1538) 评论(0) 推荐(0) 编辑
摘要: //计算比率 decimal A =(decimal) 200.20; decimal B = (decimal)1000.20; decimal t = decimal.Parse((A/B).ToString("0.000")) ; //保留3位小数 // ... 阅读全文
posted @ 2019-01-21 14:06 enych 阅读(16030) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 52 下一页