Re: DateSerial question
From: Rick Brandt (rickbrandt2_at_hotmail.com)
Date: 10/26/04
- Next message: Jude G: "How do I set up a crosstab query to act like a parameter query?"
- Previous message: bjnova: "RE: SQL syntax question"
- In reply to: JMorrell: "RE: DateSerial question"
- Next in thread: John Spencer (MVP): "Re: DateSerial question"
- Reply: John Spencer (MVP): "Re: DateSerial question"
- Reply: JMorrell: "Re: DateSerial question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 26 Oct 2004 15:32:03 -0500
"JMorrell" <JMorrell@discussions.microsoft.com> wrote in message
news:C8139417-3977-4182-A349-9983F9BFBFC1@microsoft.com...
> > ... add the third parameter less one, which in this case would give you
the
> last
> > day of the previous month.
>
> Not following you on this one. How does a zero (0) in the last
parameter,
> give the last day of previous month? Sorry, but I just don't see it.
Simple. The zeroth of a month is equal to the last day of the previous
month. It is one day before the first of the month right?
DateSerial is fully aware of all wrap points in the calendar. You can use
numbers that are too large (the 100th of a month for example) and you can
even use negative numbers for any of the arguments and DateSerial will
properly figure out what the correct date to return is factoring in leap
years and everything.
It really is the single-most versatile date function I've ever run across.
How I wish a few of the other platforms I work with had a similar one.
-- I don't check the Email account attached to this message. Send instead to... RBrandt at Hunter dot com
- Next message: Jude G: "How do I set up a crosstab query to act like a parameter query?"
- Previous message: bjnova: "RE: SQL syntax question"
- In reply to: JMorrell: "RE: DateSerial question"
- Next in thread: John Spencer (MVP): "Re: DateSerial question"
- Reply: John Spencer (MVP): "Re: DateSerial question"
- Reply: JMorrell: "Re: DateSerial question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|