I am using Delphi 2007.
I need to write a FormatDateTime function that always returns 01/01 / in the TDateEdit field (DevExpress component) as EditValue.
I already tried ...
tcxDateEdit1.EditValue := FormatDateTime('01/01/'+ 'yyyy',now);
and
tcxDateEdit1.EditValue := FormatDateTime('01/01/yyyy',Now);
but none of them worked. This leads to an error converting the variant of the string type to double. "Failed to convert variant of type (String) to type (Double)"
source share