-1

Date box format and bind time field value

asked 2016-04-25 12:42:23 +0800

Sailu gravatar image Sailu
1

Hi,

1.In datebox i want to show time field with AM/PM. But without setting format it is not able to show AM/PM. Even suppose AM/PM is not available the time hour value should have 24 hours format.But it shows number up to 12 only. 2. One more thing is the value bind with datebox is not binding time field values. For ex.- if i select calendar as 16-04-2016 and timefield as 01.10.00 PM then date box bind value shows only 16-04-2016

delete flag offensive retag edit

Comments

can you create a fiddle about your implementation and mention the ZK version?

chillworld ( 2016-04-25 13:00:41 +0800 )edit

3 Answers

Sort by » oldest newest most voted
1

answered 2016-04-25 13:06:15 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Sailu,

In order to set a 24 hour format please use the following:

format="d/M/yyyy HH:mm"

For AM/PM use the following:

format="long+long"

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2016-04-26 02:45:06 +0800

lxy826076 gravatar image lxy826076
1

不知道你说的是什么意思

link publish delete flag offensive edit
0

answered 2016-04-28 07:21:58 +0800

Sailu gravatar image Sailu
1

I thing i found if use the time format in lowercase particularly hour format then it works with 24 hour format. Due to some wrong date format it was not working in my application.

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2016-04-25 12:42:23 +0800

Seen: 42 times

Last updated: Apr 28 '16

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