JVCL Help:TJvCustomDateEdit.DateFormatPreferred

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Determines which Date Format String to use for Input and Display.


Pascal

 propertyDateFormatPreferred: TPreferredDateFormat;


Description

TPreferredDateFormat = (pdLocale, pdLocaleOnly, pdCustom, pdCustomOnly);
pdLocale, pdLocaleOnly: Display the date using the system locale settings (set in Control Panel) pdCustom, pdCustomOnly: Display the date using the DateFormat property
The default value is pdLocaleOnly which means that input will only be accepted in the format of the system locale.
Similarly, pdCustomOnly means that input will only be accepted in the format of the DateFormat property.
A value of pdLocale means that if an Invalid date is entered (i.e. one not in the format of the system locale), then it will try to interpret the date in accordance with the DateFormat property; if it is not valid according to the DateFormat string then the OnInvalidDate event will be triggered.
Similarly, a value of pdCustom means interpret the input according to the DateFormat property, failing that try the system locale format, failing that trigger OnInvalidDate.


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page