Home > Database > Mysql Tutorial > body text

在jsp页面显示从mysql数据库中提取的24小时制的时间

WBOY
Release: 2016-06-07 15:24:32
Original
1408 people have browsed it

显示方法如下: %@ taglib uri=http://java.sun.com/jsp/jstl/fmt prefix=fmt% fmt:formatDate value=${music.addDatetime} pattern=yyyy-MM-dd HH :mm:ss 关键在红字上,如果用的是大H,那么就是24小时制的,如果用的是小h,那么就是12小时制的 完事了。

显示方法如下:

关键在红字上,如果用的是大H,那么就是24小时制的,如果用的是小h,那么就是12小时制的

完事了。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template