1Dreamboy is a One Direction dating sim game where you get to interact with the five One Direction members.
You have 60 days to make one of them fall in love with you.
In the end, you get to choose whom you want to marry: Liam, Niall, Louis, Zayn or Harry?
I'm writing an equipment rental application where clients are charged a fee for renting equipment based on the duration (in days) of the rental.
So, basically, (daily fee * number of days) = total charge.
I've searched around, but nothing I've found is quite what I'm looking for.Most solutions I've seen are of the form: My problem is that equipment can be checked out and returned at any time of day during those two dates with no additional charge.The above code is calculating the number of 24 hour periods between the two dates, when I'm really interested in the number of calendar days.For example, if someone checked out equipment at 6am on July 6th and returned it at 10pm on July 7th, the above code would calculate that more than one 24 hour period had passed, and would return 2.The desired result is 1, since only one calendar date has elapsed (i.e. The closest solution I've found is this function: which does exactly what I want, as long as the two dates are within the same month.However, since get Date() only returns the day of month (i.e.