Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 MVC 中打印日期时间格式。
@{ var d= Datetime.Today; } @d
输出:07/18/2013 2:26 PM
07/18/2013 2:26 PM
但我需要像这样打印:07/18/2013 at 2:26 PM
07/18/2013 at 2:26 PM
怎么样
@{ string d = DateTime.Now.ToString("MM/dd/yyyy 'at' h:mm tt"); } @d