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.
就像是?
<fmt:formatDate value="${event.starttime}" type="both"/>
如果您不介意所有日期都将采用 UTC(或修改后的其他硬编码时区),您可以使用:
<fmt:formatDate value="${event.starttime}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'" timeZone="UTC"/>