0

Setting default values to Datebox

asked 2010-08-23 06:00:25 +0800

Dineli gravatar image Dineli
15

I have 2 date boxes in my application where i have to set the default value as the current date for 1 date box and for the other, default value should be one month less than the current month.

Ex: DateBox1 - 23/08/2010
DateBox2 - 23/07/2010

Hope Someone could show me the way to do it. Thank You in advance.

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-08-23 07:13:55 +0800

bugger2003 gravatar image bugger2003
24

You can easily set the datebox value from zscript on the same page
DateBox1.setValue(new Date());

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: 2010-08-23 06:00:25 +0800

Seen: 440 times

Last updated: Aug 23 '10

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