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.
我想在 aspx 中放置一个变量,以便在发布时将其转换为实际日期...
我的意思是我想改变
为了
当它编译时它会被渲染
您可以简单地使用:
Actual date: <%=Date.Now.ToString("dd/MM/yy")%>
请参阅这个方便的DateTime.ToString格式列表。
DateTime.ToString