Home > Net >  C # how to calculate the given time and the difference between the current time
C # how to calculate the given time and the difference between the current time

Time:11-21

In using datetimepicker Winform given time, accurate to seconds

CodePudding user response:

 
DateTimePicker DTP=new DateTimePicker ();
Var time=DTP. Value. Subtract (DateTime. Now). TotalSeconds;

CodePudding user response:

reference 1/f, kill matt, bull response:
 
DateTimePicker DTP=new DateTimePicker ();
Var time=DTP. Value. Subtract (DateTime. Now). TotalSeconds;

+ 10086

CodePudding user response:

reference 1/f, kill matt, bull response:
 
DateTimePicker DTP=new DateTimePicker ();
Var time=DTP. Value. Subtract (DateTime. Now). TotalSeconds;

+ 10086, thank you for help

CodePudding user response:

DateTimePicker DTP=new DateTimePicker ();
Var time=DTP. Value. Subtract (DateTime. Now). TotalSeconds;
  •  Tags:  
  • C#
  • Related