Skip to content

DateTimePicker always defaults current time to 12am. #4055

Closed

Description

@itg-assistant

Behzad asked 2023-02-15 23:24:45 UTC

I’m using DateTimePicker control in my application and trying to select the current date and time. Only the date part value is getting changed and time is always set to 12am and not current local time. Verified in Wisej.Net 3.0.17 version and attached is the sample application I created for testing. Can you please check and let me know how we can ensure the time is set to current local time.

Thanks

Sathya S

Activity

  1. itg-assistant commented on Jun 15, 2026

    @itg-assistant
    Author

    Luca answered 2023-03-08 15:21:12 UTC

    The time is preserved as expected. Your sample uses an invalid time of 0.

  2. itg-assistant commented on Jun 15, 2026

    @itg-assistant
    Author

    Behzad answered 2023-03-09 16:58:39 UTC

    We are currently using VWG and trying to migrate to Wisej. VWG DateTime picker always return current time in UTC when we select a date from the Calendar, where as Wisej DateTime picker only returns the time set during initialization. How do we ensure that Current time is returned by DateTime picker in Wisej when we select the date from Calendar control?

    Thanks
    Sathya S

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