I am using Embarcadero's C++Builder 10.2 and a TDateTimePicker
control. I have been trying to find a way to set the picker's date to today's date every time I create this Form. So far, I have been unsuccessful. If I try the example given using DateTime.Now
, the error message reads "undefined symbol DateTime"
. My code is in the TForm3::FormCreate(TObject *Sender)
event, as I only need this info when this form is created.
When I type in DateTimePicker1->
there is a dropdown box with all of the functions, operators, etc., that are available but none of them seem to be able to get todays date and put it into the format for the control.
It would be appreciated if anyone can help me with figuring this out.