Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

timespan to integer c#

 private void dateTimePicker4_ValueChanged(object sender, EventArgs e)
    {
        TimeSpan t = dateTimePicker4.Value.ToLocalTime() - dateTimePicker3.Value.ToLocalTime();
        int x = int.Parse(t.Minutes.ToString());
        y = x;
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #timespan #integer
ADD COMMENT
Topic
Name
9+6 =