惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Last Watchdog
The Last Watchdog
AI
AI
Webroot Blog
Webroot Blog
aimingoo的专栏
aimingoo的专栏
Hacker News: Ask HN
Hacker News: Ask HN
B
Blog RSS Feed
小众软件
小众软件
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
W
WeLiveSecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Troy Hunt's Blog
云风的 BLOG
云风的 BLOG
P
Privacy International News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Vercel News
Vercel News
Y
Y Combinator Blog
P
Proofpoint News Feed
V2EX - 技术
V2EX - 技术
AWS News Blog
AWS News Blog
F
Fortinet All Blogs
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
A
Arctic Wolf
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hugging Face - Blog
Hugging Face - Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
V2EX
MongoDB | Blog
MongoDB | Blog
SecWiki News
SecWiki News
The Register - Security
The Register - Security
博客园_首页
T
Threat Research - Cisco Blogs
Hacker News - Newest:
Hacker News - Newest: "LLM"
Recorded Future
Recorded Future
V
Vulnerabilities – Threatpost
I
InfoQ
雷峰网
雷峰网
C
Check Point Blog

博客园 - Grok.Yao

sqlserver临时启用和关闭约束 string.format 参考 大O表示法 查看sql语句的执行时间及缓存执行计划 查看索引执行次数 (转)JQuery有用的50段代码 查询指定日期区间内的每一天 FF和IE兼容的捕获回车事件问题 回车自动提交Form表单的问题 将数据库记录倒为Insert语句的存储过程 IE下 JS添加Select元素的option问题 VS中的常用快捷键,可以提高开发效率 ashx中使用Session问题 关于CSS控制TD换行与否的问题解决 TFS2008 无法撤销锁定的签出 C#中集合查询的问题! Sql获取随机时间 本地SQL脚本操作外部服务器结果集 RSA容器权限问题
C# 日期格式化参考
Grok.Yao · 2012-05-30 · via 博客园 - Grok.Yao
    1. DateTime.Now.ToShortTimeString()  
    2. DateTime dt = DateTime.Now;  
    3. dt.ToString();  
    4. dt.ToFileTime().ToString();  
    5. dt.ToFileTimeUtc().ToString();  
    6. dt.ToLocalTime().ToString();  
    7. dt.ToLongDateString().ToString();  
    8. dt.ToLongTimeString().ToString();  
    9. dt.ToOADate().ToString();  
    10. dt.ToShortDateString().ToString();  
    11. dt.ToShortTimeString().ToString();  
    12. dt.ToUniversalTime().ToString();  
    13. dt.Year.ToString();  
    14. dt.Date.ToString();  
    15. dt.DayOfWeek.ToString();  
    16. dt.DayOfYear.ToString();  
    17. dt.Hour.ToString();  
    18. dt.Millisecond.ToString();  
    19. dt.Minute.ToString();  
    20. dt.Month.ToString();  
    21. dt.Second.ToString();  
    22. dt.Ticks.ToString();  
    23. dt.TimeOfDay.ToString();  
    24. dt.ToString();  
    25. dt.AddYears(1).ToString();  
    26. dt.AddDays(1.1).ToString();  
    27. dt.AddHours(1.1).ToString();  
    28. dt.AddMilliseconds(1.1).ToString();  
    29. dt.AddMonths(1).ToString();  
    30. dt.AddSeconds(1.1).ToString();  
    31. dt.AddMinutes(1.1).ToString();  
    32. dt.AddTicks(1000).ToString();  
    33. dt.CompareTo(dt).ToString();  
    34. dt.Add(?).ToString();  
    35. dt.Equals("2005-11-6 16:11:04").ToString();  
    36. dt.Equals(dt).ToString();  
    37. dt.GetHashCode().ToString();  
    38. dt.GetType().ToString();  
    39. dt.GetTypeCode().ToString();  
    40.     
    41. dt.GetDateTimeFormats('s')[0].ToString();  
    42. dt.GetDateTimeFormats('t')[0].ToString();  
    43. dt.GetDateTimeFormats('y')[0].ToString();  
    44. dt.GetDateTimeFormats('D')[0].ToString();  
    45. dt.GetDateTimeFormats('D')[1].ToString();  
    46. dt.GetDateTimeFormats('D')[2].ToString();  
    47. dt.GetDateTimeFormats('D')[3].ToString();  
    48. dt.GetDateTimeFormats('M')[0].ToString();  
    49. dt.GetDateTimeFormats('f')[0].ToString();  
    50. dt.GetDateTimeFormats('g')[0].ToString();  
    51. dt.GetDateTimeFormats('r')[0].ToString();  
    52. string.Format("{0:d}",dt);  
    53. string.Format("{0:D}",dt);  
    54. string.Format("{0:f}",dt);  
    55. string.Format("{0:F}",dt);  
    56. string.Format("{0:g}",dt);  
    57. string.Format("{0:G}",dt);  
    58. string.Format("{0:M}",dt);  
    59. string.Format("{0:R}",dt);  
    60. string.Format("{0:s}",dt);  
    61. string.Format("{0:t}",dt);  
    62. string.Format("{0:T}",dt);  
    63. string.Format("{0:u}",dt);  
    64. string.Format("{0:U}",dt);  
    65. string.Format("{0:Y}",dt);  
    66. string.Format("{0}",dt);  
    67. string.Format("{0:yyyyMMddHHmmssffff}",dt); 

技术改变生活!

posted @ 2012-05-30 11:33  Grok.Yao  阅读(348)  评论()    收藏  举报