| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: VB + MonthView |
"Steve Gerrard" wrote in message
news:NMmdnbom0OgYnETdRVn-gw{at}comcast.com...
>
> "SneakerNet" wrote in message
> news:Yp4Cc.2893$LT3.112359{at}news.xtra.co.nz...
> > Hi all
> >
> > I'm doing a project whereby I need to store accurate dates. Is there a
> built
> > in function in VB (could involve Monthview control) that would give
> the end
> > date if a starting date is known.
> >
> > For eg
> > say today is 23/06/04 and that after one week ends on 29/06/04
> > and then 2nd week starts on 30/06/04 and that it ends on 06/07/04.
> >
> > The main thing to know is that I know the starting date (which in the
> above
> > eg is 23/06/04).
> >
> > Same thing with 'fortnightly' and monthly.
> > I mean I can write an algorithm to do this, but just wondering if
> there is
> > one built in.
> > Any advice appreciated
> >
> > Thanks
> >
> >
> The function is called DateAdd, and looks like this:
> x = DateAdd(Interval, Amount, BaseDateTime)
>
> where Interval is one of these strings:
>
> "yyyy" Year
> "q" Quarter
> "m" Month
> "y" Day of year
> "d" Day
> "w" Weekday
> "ww" Week
> "h" Hour
> "n" Minute
> "s" Second
>
> Alas, there is no fortnight among them. Note that minutes is "n", not
> "m". Also, Amount can be negative to do DateSubtract.
>
>
>
Hi Steve
This is perfect.. I was after this function. Thanks for your help :)
Regards
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com
---
* RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
* RgateImp.MoonDog.BBS at 6/23/04 4:39:41 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)SEEN-BY: 633/267 270 @PATH: 278/230 10/345 106/1 2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.