Description
Returns the Value property as a text string with the specified Format or CustomFormat applied.
Applies to
DatePicker controls
Syntax
controlname.GetText ( )
Return value
String.
Usage
Returns the date and time stored in the Value property as a text string formatted according to the Format property, or if Format is set to dtfCustom!, according to the format specified in the CustomFormat property.
Examples
This example retrieves the date and time stored in the Value property of dp_1 to the string ls_text:
string ls_text ls_text = dp_1.GetText()
See also