0

在DATEBOX中如何实现完整的时间输入?

asked 2007-08-07 05:56:50 +0800

brianhong gravatar image brianhong
18 1
保存到数据库的时间需要是完整的时间,但是好像ZK的DATEBOX控件只能选择yyyy-MM-dd这样的日期格式,没办法时间yyyy-MM-dd hh:mm:ss的完整时间格式。

有谁能帮忙实现这个功能?

非常着急!
delete flag offensive retag edit

14 Replies

Sort by » oldest newest

answered 2007-08-07 06:02:48 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team
用format去設定。
<datebox id="db" format="yyyy-MM-dd hh:mm:ss"/>
link publish delete flag offensive edit

answered 2007-08-07 06:11:24 +0800

brianhong gravatar image brianhong
18 1
您试过吗?我这里不行的,会提示出错的。
link publish delete flag offensive edit

answered 2007-08-07 06:11:44 +0800

brianhong gravatar image brianhong
18 1
我用的是2.2.1版本
link publish delete flag offensive edit

answered 2007-08-07 06:15:24 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team
請更新最新版。
link publish delete flag offensive edit

answered 2007-08-07 06:18:41 +0800

brianhong gravatar image brianhong
18 1
你到ZK的DEMO环境中去试试。。。。。。也是不行的!
link publish delete flag offensive edit

answered 2007-08-07 06:19:42 +0800

brianhong gravatar image brianhong
18 1
就是该网站的DEMO,应该是最新的版本吧?我在input那块试过了。也提示出错。
link publish delete flag offensive edit

answered 2007-08-07 06:46:38 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team
嗯,真抱歉!
datebox目前只支援日期,如果你想要用時間就要用timebox。

PS:timebox ZK 2.5.0才支援。
link publish delete flag offensive edit

answered 2007-08-07 08:07:36 +0800

brianhong gravatar image brianhong
18 1
有没有热帮忙在2.2.1版本上我实现该功能???

tomyeh??在哪里?
link publish delete flag offensive edit

answered 2007-12-26 18:43:00 +0800

everyman1234 gravatar image everyman1234
6

how to create datebox with value displayed on the screen?

I create a datebox with value "2007/07/01" but it issues error like " 2007/07/01 (java.lang.String) ... can't be converted to ... class java.util.Date".

e.g.,
<datebox value="2007/07/01" />

How can I set databox with a default value displayed?

link publish delete flag offensive edit

answered 2007-12-28 01:43:05 +0800

jebberwocky gravatar image jebberwocky
222

<window>
<zscript>
java.util.Calendar c = java.util.Calendar.getInstance();
c.set(1992,2,1);
java.util.Date d = c.getTime();
</zscript>
<datebox value="${d}" />
</window>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2007-08-07 05:56:50 +0800

Seen: 1,650 times

Last updated: Feb 08 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More