Almora Well-Known Member Licensed User Longtime User Dec 13, 2016 #1 Hi... I was blocked in the calculation. I will calculate the durationof military service. 12 months of military service. I calculate between two dates. I can not figure out how many days are left. http://www.safak.web.tr I want to calculate this. Attachments PicsArt_12-13-02.54.04.jpg 291.7 KB · Views: 167
Hi... I was blocked in the calculation. I will calculate the durationof military service. 12 months of military service. I calculate between two dates. I can not figure out how many days are left. http://www.safak.web.tr I want to calculate this.
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2016 #2 You need to use DateUtils.PeriodInBetweenInDays. B4X: Dim target As Long = DateTime.DateParse(...) Dim p As Period = DateUtils.PeriodInBetweenInDays(DateTime.Now, target) log(p.Days) Upvote 0
You need to use DateUtils.PeriodInBetweenInDays. B4X: Dim target As Long = DateTime.DateParse(...) Dim p As Period = DateUtils.PeriodInBetweenInDays(DateTime.Now, target) log(p.Days)