Re: date - # of days calcuation
- From: fredg <fgutkind@xxxxxxxxxxxxxxx>
- Date: Mon, 06 Jun 2005 23:00:00 GMT
On Mon, 6 Jun 2005 15:35:32 -0700, Donna wrote:
> I have a table that has a field for a begin date & a field for an end date.
> A person may check into the shelter on 6/15 and leave on 7/15, for example.
> The problem is I need to figure out how many days we supplied overnight
> housing for people for the month of JUNE only. Can I do that with just these
> 2 fields, or should I redesign the database to put some other field in there?
If I understand you correctly, you wish to know how many days between
6/15 and the end of that month.
Exp:DateDiff("d",[DateField],DateSerial(Year([DateField]),Month([DateField])+1,0))
For 6/15 the answer is 15.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.
- Follow-Ups:
- Re: date - # of days calcuation
- From: Donna
- Re: date - # of days calcuation
- References:
- date - # of days calcuation
- From: Donna
- date - # of days calcuation
- Prev by Date: Re: date - # of days calcuation
- Next by Date: Re: date - # of days calcuation
- Previous by thread: Re: date - # of days calcuation
- Next by thread: Re: date - # of days calcuation
- Index(es):
Relevant Pages
|