Skip to content

DateTimePicker time-only #256

Closed
Closed

Description

@itg-assistant

Alex Prinias asked 2016-09-15 09:20:54 UTC

Hi,

In a DateTimePicker, if I want to show only time, I used to use the following settings:

dt.Format = DateTimePickerFormat.Custom;
dt.CustomFormat = "HH:mm";
dt.ShowUpDown = true;

The UpDown arrows do not seem to work.

I tried the recommendation for WinForms:

dt.Format = DateTimePickerFormat.Time;
dt.ShowUpDown = true;

with or without the CustomFormat setting.

UpDown arrows still do not work.

Additionaly, it would be nice to be able to not show the calendar icon in the DateTimePicker textbox (which is meaningless in a Time-only picker), either with a ShowCalendar = false setting, or by default if DateTimePickerFormat.Time is set.

This is with version 1.2.62 and the Classic-2 theme.

Best,

Alex

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2016-09-15 22:34:16 UTC

    Thanks Alex.

    Logged as a bug WJ-7610 and enhancement request WJ-7611.

    Best regards
    Frank

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2016-09-19 16:09:10 UTC

    Hi Alex,

    the bug has been fixed, the requested feature added. (Both in 1.2.63).

    Best regards
    Frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions