Returns the Value property as a text string with the specified Format or CustomFormat applied.
DatePicker controls
controlname.GetText ( )
Argument |
Description |
---|---|
controlname |
The name of the control for which you want to get the text |
String.
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.
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()