DateBox

Top  Previous  Next

DateBox is based on an EditBox element; additionally it has conversion and validation properties.

Using this element:

1.A date data can be converted from Database format to the display format
2.The user can be forced to input a date between the specified date interval
3.The input of the user can be validated with custom functions
4.The date value can be converted back to the database format before sending it to the server.

 

DateBox

 

Properties

From Date, To Date

Enter dates in "yyyy.mm.dd" format to these properties to force the user to input a date between these values. The user will be alerted if entered date value is less than From Date or greater than To Date.

Default Date

Enter a value in "yyyy.mm.dd" format. If no value is provided by the bind data node, this value is the default. To set the default date to the users computers date simply specify today.

Examples:

today
today +1d /* 1 day later from today
today +1y /* 1 year later from today

Value (In the Functional Tab)

The Value of the date. It is initially bind to an XML node whose name is same as the Element name. For most of the cases you won't need to change it. It is enough if you just set the name of the element. The format of the value must be the same as Value Format property.

Value Format, Display Format, Submit Format

The date formats can be different from system to system. You can select one of the predefined formats for these properties or type in your custom one.

- Value Format : The format of the date value received from server.

- Display Format : The format of the date value displayed to the user.

- Submit Format : The format of the date value sent to the server.

 

Validation

See the topic "Validating User's Input" in the main help file for general explanations about validation.

 

See Date Formatting Symbols

See Dynamic Values

See Localizing Validation Messages