DateTimePicker - Issue with getting the current time.

0
0

Hello,

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 not getting updated to the current time (always shows time set during design time). Is there a sample code that will show how to set current date and time from UI?

Wisej Version – 2.2.29

Thanks

  • You must to post comments
0
0

Hello Frank,

I tested the on the latest Wisej.Net 3.0.17 version, the time is still being defaulted to 12am instead current user local time. 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

  • You must to post comments
0
0

Hello Frank,

Our application is on 4.7.2 and is not supported by 3.0.12. I tried upgrading it to 2.2.60 and verify, but the issue still persist.

//
// dateTimePicker1
//
this.dateTimePicker1.Format = Wisej.Web.DateTimePickerFormat.DateTime;
this.dateTimePicker1.Location = new System.Drawing.Point(202, 121);
this.dateTimePicker1.Name = “dateTimePicker1”;
this.dateTimePicker1.Size = new System.Drawing.Size(521, 22);
this.dateTimePicker1.TabIndex = 0;
this.dateTimePicker1.Value = new System.DateTime(((long)(0)));

selecting the date always defaults the time 12am and not current time(“7/25/2022 12:00:00 AM”).

Thanks

Sathya

  • Levie (ITG)
    Hi Sathya, unfortunately we’re no longer actively updating 2.2. If you need an old build patched please reach out to sales AT wisej DOT com. Regards, Levie
  • You must to post comments
0
0

Hi Behzad,

I tested with Wisej.NET 3.0.12 and it works correctly so assuming it might have been fixed down the road.
You might consider upgrading at least to evaluate if this problem persists.

If it does please provide us with a test case.

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.