I'm using a 2013 workflow that starts on creation, and the Find days between dates code. I'm getting the time from the "Due Date" field on the list, it comes with a time, so I set time for 12:00:00 in the first step. Here is the whole workflow
And this is what I get in the log: the date, 1/4/2016 12:00:00 AM, then the date variable and the time variable which is the days in between.
I should be getting 116 in time variable obviously. I've tried setting the date, 1/4/2016, to a date variable first then use the variable in the code but I still get the same results.