摘要:
string str = "2019-01"; //name: "2019-01月" str = str.Substring(str.Length - 2, 2); //把第一个0替换为空 var t = Convert.ToInt32(str).ToString(); 阅读全文
摘要:
//默认当年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 阅读全文
摘要:
private void Form1_Load(object sender, EventArgs e) { decimal dd = (decimal)11234567890.01; string ddstr = dd.ToString(); test(ddstr); } ... 阅读全文
摘要:
阅读全文
摘要:
<!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= 阅读全文
摘要:
[DllImport("user32.dll")] static extern IntPtr SetWindowsHookEx(int idHook, keyboardHookProc callback, IntPtr hInstance, uint threadId); /// /// 安装钩子 /// ... 阅读全文
摘要:
/// /// 获得固定年月日,时和分不固定 : 2019-01-01 00:00:00 /// /// public DateTime GetFixedDateTime(string Hour = "", string Minute = "") { string time1 = Da... 阅读全文
摘要:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\xxx\Start = 1,2=自动,3,4=禁用 阅读全文
摘要:
//计算比率 decimal A =(decimal) 200.20; decimal B = (decimal)1000.20; decimal t = decimal.Parse((A/B).ToString("0.000")) ; //保留3位小数 // ... 阅读全文