jsp中用EL读取了数据库里面的时间,怎么设置格式显示的格式
首先导入标签
http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
"/>
value="${viewKq.srq}" EL表达式取的日期值
Pattern:输出的日期格式;
这样就可以把时间格式化
在EL表达式中要显示“yyyy-MM-dd”格式的日期:
...
分类:
数据库 时间:
2015-06-26 13:00:00
阅读次数:
154
1.PATINDEX ( '%pattern%' , expression )返回pattern字符串在表达式expression里第一次出现的位置,起始值从1开始算。pattern字符串在expression表达式里没找就返回0,对所有有效的文本和字符串就是有效的数据类型。%使用方法同Like详细...
分类:
数据库 时间:
2015-06-26 12:37:38
阅读次数:
178
Wildcard Matching
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The ...
分类:
其他好文 时间:
2015-06-25 15:35:29
阅读次数:
123
1 import java.util.regex.Matcher; 2 import java.util.regex.Pattern; 3 4 public class HTMLSpirit{ 5 public static String delHTMLTag(String htm...
分类:
编程语言 时间:
2015-06-24 18:49:33
阅读次数:
125
Javascript modules are a design pattern that allow you to encapsulate your code into smaller self managing pieces. They help you separate your code, p...
分类:
编程语言 时间:
2015-06-24 16:21:21
阅读次数:
161
设计模式(Design Patterns) ——可复用面向对象软件的基础设计模式(Design pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结。使用设计模式是为了可重用代码、让代码更容易被他人理解、保证代码可靠性。 毫无疑问,设计模式于己于他人于系统都是多赢的,设...
分类:
编程语言 时间:
2015-06-24 16:06:01
阅读次数:
128
在说 Builder Pattern 之前,我们先来看看一个场景。假设我们要预定一个 iPhone 6,要 64G 的,金色的,用代码表述大概是这样1234//PFX是一个前缀,因为直接写iPhone6不符合类名大写的习惯,写成IPhone6更是怪异╮(╯▽╰)╭PFXiPhone6*iphone=...
分类:
其他好文 时间:
2015-06-24 12:29:31
阅读次数:
109
简介sed 是一种在线编辑器,它一次处理一行内容。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。接着处理下一行,这样不断重复,直到文件末尾。文件内容并没有 改变,除非你使用重定向存储输...
分类:
系统相关 时间:
2015-06-24 12:22:36
阅读次数:
242
题目:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed fo...
分类:
其他好文 时间:
2015-06-23 13:24:20
阅读次数:
114
#6 ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like
this: (you may want to display this pattern in a fixed font for better legibility)...
分类:
其他好文 时间:
2015-06-22 22:25:11
阅读次数:
181