Day of week

Posted on 16th Feb 2014 07:03 pm by admin

I am using PHP version 5.0.5
I have a varaible ($DATE (date format yyyy-mm-dd)) that is being incremented to populate a table with each day of the month. I am then trying to get the day of week (preferably an integer) for each date in the month. I have tried both
$DOW = date("w", $Date)
$DOW = date("l", $Date)

Using October of this year however $DOW always returns either "3" or "Wednesday". I have checked and the varaible $Date is incrementing correctly. Here is the code snippet:

for ($num = 1; $num <= $Count; $num++) {
if($num < 10)
$SDPart = "0$num";
$SDPart = "$num";
$Date = "2009" . "-" . $SDMo . "-" . $SDPart;

$DOW = date("w", $Date);

No comments posted yet

Your Answer:

Login to answer
106 Like 38 Dislike
Previous forums Next forums
Other forums

Replica Omega kellot
[b]Paras Sveitsin Replica Kellot[/b] [b][url=]paras replica kellot[/u

2014???????????????????????????????????? [Moncler_Outlet_80139] - ?41087 : ??????,

Moncler Sjal
[b][url=]moncler menn jakker[/url][/b] [b][url=http://www.monclerdown.c

Posting Serialized Data Not Working
I am trying to send an object from one PHP file to another using POST. I serialize the object and th

Omega Watches Fake De Ville 413. Ladies quartz watch [6be0] - $214.00 : Professional Replica Omega Watches Store,
[b]omega watches on sale[/b] [b][url=]omega watches replica[/url]

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS