
Contributor
2021-01-29
12:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Calculating weeks from number of days between two dates
Hi,
Can some please clarify how to convert the number of days between two dates into weeks?
We have date A and Date B. (01/01/2021 & 22/01/2021) that are 21 days apart. how do I convert the days into '3 weeks' in order to display the time taken into a Barchart as weeks?
Thanks
909 Views
1 Reply
2021-01-29
02:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try like this?
Floor(Fabs(Interval(Date#([date A], 'DD/MM/YYYY')-Date#([Date B],'DD/MM/YYYY'), 'DD'))/7) & ' Weeks' as WeekField
Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
864 Views
