I'm trying to calc the total of days between two dates.
When I'm running the source in the dev IDE all works fine,
but after compiling and executing the comp version I got
a error message '...Input String was not in correct format ...'
Please see attache source and compile it and execute the
exe file.
Unlike regular variables, you need to first assign 0 to the textbox.
However your code will still not work correctly.
Dates are stored as ticks which are very big numbers and small rounding errors may occur during calculations. The result is that start_date may not be exactly equal to end_date and the loop will not stop.