In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> > > datCurrent, intCurrentMonthDays and intWorkDays are local
>
> > This didn't totaly help. This line I can't figure out:
> > intCurrentMonthDays= Day[DateAdd["d",-1, DateAdd["m",1, datCurrent]]];
> >
> > Basically it gets the number of
> > datCurrent, intCurrentMonthDays and intWorkDays are local
> This didn't totaly help. This line I can't figure out:
> intCurrentMonthDays= Day[DateAdd["d",-1, DateAdd["m",1, datCurrent]]];
>
> Basically it gets the number of days in the current month, How to do
> in PHP?
Mr.Baseball,
have a
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
>
> function begin_month($timestamp)
> {
> $a = getdate($timestamp);
> return mktime(0, 0, 0, $a["mon"], 1, $a["year"]);
> }
>
> function end_month($timestamp)
> {
> $a = getdate($timestamp);
> return mktime(0, 0, 0, $a["mon"] + 1, 0
You should be able to do everything with PHP's date functions:
http://www.php.net/manual/en/ref.datetime.php
Pay particular attention to the mktime, date, and getdate functions. The
script below might be helpful to you.
__
Curt A. Gilman
Richmond, Virginia, USA
[EMAIL PROTECTED]
"
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
>Goto yahoo and do a search for ASP2PHP - it is a script that converts
>asp pages to php. Never used it so I can't say how good it works, but
>I'm guessing it will do all the basic stuff really well, but db stuff
>might get a bit messy.
5 matches
Mail list logo