datetimepicker value different from variable
Posted: Fri Apr 05, 2013 9:07 pm
Hello,
Hope can you help me.
The value displayed on the datetimepicker is different from the variable value.
I want a specific time, so my variable is initialized by the following expression:
But the datetimepicker value for that variable is always the current DateTime.
Am I doing something wrong? Is there any way to 'fix' it?
Thanks!
Hope can you help me.
The value displayed on the datetimepicker is different from the variable value.
I want a specific time, so my variable is initialized by the following expression:
Code: Select all
new DateTime(DateTime.Now.Year,DateTime.Now.Month,DateTime.Now.Day, 23, 59, 59)
Am I doing something wrong? Is there any way to 'fix' it?
Thanks!