دنبال کننده ها

۱۳۹۶ شهریور ۱۱, شنبه

c# - Difference between two dates and put the result in IntegerUpDown field using WPF

[ad_1]



I'm developing an app using WPF.
In one of my windows i have two date pickers and one IntegerUpDown field.
This is what i have ->
enter image description here



I want to change the value in the IntegerUpDown field according to the dates in the date pickers. For example, if the first date is 02-Sep-17 and the second is 07-Sep-17, the value should be 5.
I saw an example here, but when i tried it, it had no result. The value was still 1.



I will appreciate any kind of help. :)




[ad_2]

لینک منبع