skip to main content

Controls Reference : DATE-ENTRY : Properties : Display-Format

Display-Format
This property allows you to set the pattern string that will be used to display the information. Within date and time pattern strings, unquoted letters from 'A' to 'Z' and from 'a' to 'z' are interpreted as pattern letters representing the components of a date or time string. Text can be quoted using single quotes (') to avoid interpretation. "''" represents a single quote. All other characters are not interpreted, they are simply copied into the output string during formatting or matched against the input string during parsing.
The following pattern letters are defined (all other characters from 'A' to 'Z' and from 'a' to 'z' are reserved):
Pattern letters are usually repeated, as their number determines the exact presentation:
Localized date and time pattern strings are also supported. In these strings, the pattern letters described above may be replaced with other, locale dependent, pattern letters.
If this property is not set, then the display format is retrieved by the current operating system international settings.
 
Example - Define a date-entry control with display format that include era designator, year, month and day
screen section.
  03 screen-1-de-1 Date-Entry
     line 21.2
     column 49.5
     size 14.5 cells 
     lines 3.1 cells 
     decoration-background-visible
     display-format "G, y-MM-d"
     value-format davf-yyyymmdd
     calendar-font Bell-MT-10v0-b
     decoration-background 12

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left