<%# Eval("SDate", "{0:yyyy/MM/dd}") %>
// 0: 表示定義整個括號裡面的第 0 個變數要採用此日期格式。
// 以下為兩個變數的範例。
string s = String.Format("At {0}, the temperature is {1}°C.",
DateTime.Now, 20.4);
Console.WriteLine(s);
// Output similar to: 'At 4/10/2015 9:29:41 AM, the temperature is 20.4°C.'
【參考連結】
- asp.net – how to apply particular FORMAT of date by using eval? – Stack Overflow
- c# – What does the 0 in “{0:MM dd yyyy}” do? – Stack Overflow
- String.Format 方法 (System) | Microsoft Docs
- 自訂日期與時間格式字串 | Microsoft Docs
- 標準日期和時間格式字串 | Microsoft Docs
Delphi menus always seem to revert to the default font (8, Tahoma) problem,Some users abroad have asked about this,but there is no solution。Currently, the temporary workaround I can think of is to set up a function key (which can be used as a hotkey),so that when users encounter a smaller font,,they can manually reset the font size。(During testing, changing the Windows display scaling percentage can make the menu font revert to the default size)
先前有寫過一篇「
It seems that Joomla, starting from version 2.X and 3.X,,automatically converts email addresses in articles into hyperlink format。Today, when using JavaScript for the email address on a specific page,it resulted in clicking,causing two Outlook windows to pop up,因此需要關閉內建的轉換功能。
用 Joomla 4 建置新網站,開啟 SEO 及 URL Rewrite 後,網站就出現問題,一開始 Google 到自己的文章 -「






