b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

c:foreach循环map_c语言有没有foreach_c:foreach(13)

电脑杂谈  发布时间:2017-02-17 06:19:41  来源:网络整理

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="long" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" dateStyle="full" />

<br />

显示结果如下:

2009-12-7 21:30:49

09-12-7 21:30:49

2009-12-7 21:30:49

2009年12月7日 21:30:49

2009年12月7日 星期一 21:30:49

可以看到dateStyle属性只对日期部分起作用,时间部分没有作用.

timeStyle用来显示时间部分的样式,取值范围同上

--------------------------

Java代码

<fmt:setLocale value="zh_cn" />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="default" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="short" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="medium" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="long" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="full" />

<br />

<fmt:setLocale value="zh_cn" />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="default" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="short" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="medium" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="long" />

<br />

<fmt:formatDate value="<%=new Date()%>" type="both" timeStyle="full" />

<br />

输出:

2009-12-7 21:35:52


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-32905-13.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...