Please enable JavaScript to view this site.

ESL Documentation

Navigation: ESL Documentation > ESL Internationalisation

Range Validation for Dates and Times in Local Format

Scroll Prev Top Next More

ESL supports validation for dates and times in entry fields based on the preferred local format specified by a user for his or her system. ESL can validate that a date or time has been entered in the local format and, additionally, can validate that the date or time falls within a particular range of dates or times.

For example, using the sample code in the following code segment, when a date in the DateRange_EF entry field is validated, the date is accepted only if it is entered in the local format and falls in the range 01/12/94 to 31/21/94. Note that the date format "ddmmyy" specifies the format for the range specification. It does not specify the format for accepted dates.

enabled visible entry field DateRange_EF 

 size 50 10 

 at position 100 50 in DialogBox1_DB 

 validation is sysdate ddmmyy "/" 

         range is "01/12/94" "31/12/94" 

See the entry field definition for specification of the sysdate and systime syntax to use when validating dates and times in local format.