Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Formatting Dates in TDateEditComboBox
Thu, Sep 24 2020 6:28 AMPermanent Link

Richard Harding

Wise Nutrition Coaching

In EWB2, if I clicked on the today date in an TDateEditComboBox control, the date is shown as "24/09/2020".

In EWB3, it is now shown as "09/24/2020".

The format settings are:

procedure TfmMenu.GlobalFormatSettings;
begin
  FormatSettings.DateSeparator := '/';
  FormatSettings.TimeSeparator := ':';
  FormatSettings.ShortDateFormat := 'dd/MM/yyyy';
  FormatSettings.ShortTimeformat := 'hh:mm tt';
end;

The control is unbound.

What crucial bit  of information am I missing?

Thanks
Richard
Thu, Sep 24 2020 10:47 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< In EWB2, if I clicked on the today date in an TDateEditComboBox control, the date is shown as "24/09/2020".

In EWB3, it is now shown as "09/24/2020". >>

I'm not seeing that, but I am seeing an issue with the IsDate function (WebCore unit), which was returning the wrong Boolean value, which could cause weird stuff with the TDateEditComboBox drop-down functionality.

Check this out again with build 19 and let me know if you still see what you're describing.

Thanks !

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Sep 25 2020 11:45 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Tim,

This is related to empty caption and text properties.

I have a number of unbound edit and dateeditcombobox controls on a form with empty text properties. They are now set to 'Text' which confused the StrToDate function which returned an "Invalid date (09/24/2020)" error.

Richard
Image