This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

DateTimePicker- 24h format ?

TLMDDateTimePicker comes with a preset am/pm time format selection.
Can I change to 24h without am/pm somewhere ?

Comments

  • Hi,

    You should set two properties:

    MyDateTimePicker.TimeSettings.Format  := tfCustom; 
    MyDateTimePicker.TimeSettings.FormatStr  := 'HH:mm';
  • Hi,

    I have set the properties, and it shows well,
    but on clicking the down arrow on right side and displaying the date/time edit box,
    the clock still shows AM/PM format only (see attached file).
    Can this be adjusted to 24h format also ?
  • Hi,

    The bug has been fixed.
  • Thanks a lot !
    Uhmm... that means it will be in next release ?
    Or isthe fix availabl somewhere ?
  • Hi,

    If you have access to LMD SVN, you can update source from it right now. Othersise, you have to wait for the next minor release.
  • Hi, I found another bugs in DateTime Picker:
    - When modifying the time part in edit line, AsDateTime property returns interger value only, no time fraction.
    - When modyifing the time part with edit box displayed, AsDateTime property doe snot update the fraction.
  • one more bug:
    - Using DateTimePicker->AsInt64 return an error message "ELMDWrongDataType : no integer entered".
    As this is a value I want to read, the message seems to be out of place.
    Can it be suppressed ?
  • Hi,

    The bug with AsDateTime property has been fixed. Your suggestion about AsInt64 property cannot be implemented, because TLMDDateTimePicker is based on TLMDMaskedEdit, and not all of its inherited properties can be really used.
  • Just one more hint:
    I am using TDateTimePicker with custom date & time format,
    preset by using the systems locale settings strings.
    For time, this is a display hh:mm:ss with seconds.

    Is it possible that when you fix the setting in the time edit display, that this is also applied there,
    so I can edit the second also ?
  • Hi,

    I've checked and seconds are already editable, actually.
Sign In or Register to comment.