0

how to set format to textbox?

asked 2013-10-24 05:20:01 +0800

susu gravatar image susu
11 2

updated 2013-10-24 10:19:15 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

hye, instead of using the datebox, can i want to set dateformat "yyyy-MM-dd" to my textbox? this is because i dont want the calender appear in my textbox.

<label value="${lbl:name('Report Date')}" /> 
<span class="req"></span>

    <textbox id="txtRPT_DATE"    width="90%" value=" "  readonly="true"
    constraint="" onChange=' '/>
delete flag offensive retag edit

Comments

There is another option, use datebox with buttonVisible="false" attribute.

vincentjian ( 2013-10-25 02:11:58 +0800 )edit

thank you so much vincentjian. its work well on my program .. :D

susu ( 2013-10-25 02:46:39 +0800 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-10-24 10:31:07 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

You have to write the TypeConverter class for this you can follow this Databinding-with-TypeConverter-sample

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: 2013-10-24 05:20:01 +0800

Seen: 31 times

Last updated: Oct 24 '13

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