RE: [PHP] First day of the month

2004-08-03 Thread Matthew Sims
> I was going to suggest; > > $dayofweek = date("D",strtotime(date("Y-m-01"))); > > Warren Vail > > That probably works but if you look, you're calling a function inside a function that's inside another function. $dayofweek = date("D", mktime(0,0,0,$m,1,$y)); A little more simpler. BTW, "D" or

Re: [PHP] First day of the month

2004-08-03 Thread David Hansen Jr.
On Tue, 2004-08-03 at 11:09, Matthew Sims wrote: > > I'm trying to make a custom calendar script for my school district, and > > I'm hitting a little obstacle. I know how I can accomplish what I'm > > after, but it's a lot of extra coding. I'm wondering if there's a > > simple way to figure out w

Re: [PHP] First day of the month

2004-08-03 Thread John Holmes
David Hansen Jr. wrote: I'm trying to make a custom calendar script for my school district, and I'm hitting a little obstacle. I know how I can accomplish what I'm after, but it's a lot of extra coding. I'm wondering if there's a simple way to figure out what day of the week the first day of the

RE: [PHP] First day of the month

2004-08-03 Thread Vail, Warren
I was going to suggest; $dayofweek = date("D",strtotime(date("Y-m-01"))); Warren Vail -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 03, 2004 11:00 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] First day of the month On Tuesd

Re: [PHP] First day of the month

2004-08-03 Thread Matthew Sims
> I'm trying to make a custom calendar script for my school district, and > I'm hitting a little obstacle. I know how I can accomplish what I'm > after, but it's a lot of extra coding. I'm wondering if there's a > simple way to figure out what day of the week the first day of the month > lands on

Re: [PHP] First day of the month

2004-08-03 Thread John Nichel
On Tuesday 03 August 2004 13:46, David Hansen Jr. offered up the following tid-bit of information : > I'm trying to make a custom calendar script for my school district, and > I'm hitting a little obstacle. I know how I can accomplish what I'm > after, but it's a lot of extra coding. I'm wonderi

[PHP] First day of the month

2004-08-03 Thread David Hansen Jr.
I'm trying to make a custom calendar script for my school district, and I'm hitting a little obstacle. I know how I can accomplish what I'm after, but it's a lot of extra coding. I'm wondering if there's a simple way to figure out what day of the week the first day of the month lands on. I can t