How do I assign the date/time format for an edDateTimeEdit, edDateEdit, or edTimeEdit?
I can't find how to assign a format to the date editors. I would prefer to combine the date/time editing using edDateTimeEdit, I can't find access to that control at all.
For the common control based edTimeEdit, I've tried:
advStringGrid1.DateTimePicker.Format := 'yyyy/MM/dd hh:mm tt'
but it gives me a compile error 'constant expression expected'.
The date editor gives a format of MM/dd/yyyy h:mm:ss tt, which I imagine the control gets from the system settings, but I do not want to override the entire system setting, just the grid.
Thanks
Please do this via for example:
advstringgrid.DateAndTimePicker.Format := 'MMM-dd-yyyy';
advstringgrid.DateAndTimePicker.TimeFormat := 'HH:MM';