Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate Days between date and last sundays date 1

Status
Not open for further replies.

aarondewberry

IS-IT--Management
Jul 20, 2005
148
0
0
GB
All

I need to calculate the number of days between a date (ie. 03/07/06) and last sundays date. So if I ran the report today, it would still only show the amount of days between the 1st date up to last sunday (ie. 13 as above).

Hope this makes sense.
 
=DayNumberOfWeek(CurrentDate())

will give the day number of the week (Sunday is day 0)


=CurrentDate()-DayNumberOfWeek(CurrentDate())

will give Sunday's date

=DaysBetween(<Date of Birth> ,CurrentDate()-DayNumberOfWeek(CurrentDate()))

wil give days from first date to lastSunday

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top