Datetime和ToString可以实现日期和字符串之间的任意转换
摘要:DateTime.ParseExact("20110515041233", "yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture).ToString("yyyy-MM-dd HH:mm:ss")
阅读全文
DateTime Formating[转]
摘要:source:http://blog.darkthread.net/blogs/darkthreadtw/archive/2007/04/30/tips-net-datetime-formating.aspx在VB/VBScript時代,講到日期時間輸出的格式化,大家都知道要用Format(for VB)或FormatDateTime(fro VBScript)。到了.NET時代,有些VB.NET開發者會繼續沿用Format函數。事實上,DateTime Class本身就提供輸出格式化的支援,不用另外呼叫函數處理,而且對C#或VB.NET都通用。以將日期時間轉成字串為例,DateTime.No
阅读全文
外连接在sqlserver和access之间的差异
摘要:access中的写法:select * from((spaceports as a left join flights as b on a.spaceport_id=b.departure_city)left join passengers as c on b.flight_id = c.flight_id)sqlserver中的写法:select * from spaceports as a left join flights as bon a.spaceport_id=b.departure_cityleft join passengers as c on b.flight_id = c.
阅读全文
外连接在sqlserver和access之间的差异
摘要:access中的写法:select * from((spaceports as a left join flights as b on a.spaceport_id=b.departure_city)left join passengers as c on b.flight_id = c.flight_id)sqlserver中的写法:select * from spaceports as a left join flights as bon a.spaceport_id=b.departure_cityleft join passengers as c on b.flight_id = c.
阅读全文
栈和队列
摘要:栈和队列: 本质上是同线性表相同的。 只是认为的限定只能够在一端进行操作。 栈和队列关键在于应用; 应用案例:1.迷宫问题; 2.运算符匹配; 3.后缀运算符的实现; 4。递归算法的内部实现。
阅读全文