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.
当时间和日期在一个参数中时,如何更改日期格式?
Parameters!DateTimeFrom.Value
我想把它改成MM-dd-yyyy.
MM-dd-yyyy
请帮忙。
你可以试试这个
=Format(CDate(Parameters!DateTimeFrom.Value),"MM-dd-yyyy")
或者,如果您还想显示时间- MM-dd-yyyy hh:mm:ss,那么您应该在下面尝试,
MM-dd-yyyy hh:mm:ss
=Format(CDate(Parameters!DateTimeFrom.Value),"MM-dd-yyyy hh:mm:ss")