@lists.php.net
Subject: Re: [PHP] Problems with date()
Hi,
Try it with 28 December instead of 31 December.
>From http://en.wikipedia.org/wiki/ISO_week_date
The last week of the ISO year is the week before week 01; in accordance with
the symmetry of the definition, equivalent definitions
Hi,
Try it with 28 December instead of 31 December.
From http://en.wikipedia.org/wiki/ISO_week_date
The last week of the ISO year is the week before week 01; in accordance with
the symmetry of the definition, equivalent definitions are:
- the week with the year's last Thursday in it
- th
And what exactly did you expect? Have you checked a calendar? The
31st of december 2001, 2002 and 2003 are Monday, Tuesday and
Wednesday respectively. In other words. those days are more or less
in the middle of the week 01. So, I would say that your results are
absolutely right.
/frank
1
I hope someone can help with this.
I'm trying to find the week number of the last week of the year.
I have the following code snippet:
$lastday = strtotime("31 December ".$year);
$lastdate = date("Y-m-d", $lastday); // for testing
$lastweek = date(W, $lastday);
I put the $lastdate line in becau
Maybe posting some code would help...
Bogdan
peke wrote:
>I've ported an app from linux to windows 2000 and now i'm having problems with
>functions date and mktime...does anybody knows the reason?. It says unexpected error
>and I don´t know what it can be
>Thanks in advance
>
--
PH
I've ported an app from linux to windows 2000 and now i'm having problems with
functions date and mktime...does anybody knows the reason?. It says unexpected error
and I don´t know what it can be
Thanks in advance
Have anyone has the same problems making the port of a php app to windows 2000 from
linux
I'm going crazy with that stuff
Thanks in advance
Hi everybody
I hope someone can help me in an issue on where i've been stuck for a while.
I'm trying to show a date from a Table in SQLServer7
when i use this :
the browser shows me the date correctly and the result is this: 2002-02-01
11:31:00
Obviously i want to format the da
s to the
screen
Cheers
Jon
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: 13 February 2001 14:38
To: '[EMAIL PROTECTED]'
Subject: [PHP] Problems with date() - what have I missed?
Hi list.
I have a strange problem with a PHP script (WinNT/Apache/PHP4/
Hi list.
I have a strange problem with a PHP script (WinNT/Apache/PHP4/MySQL).
The line of code
$dayname = date("D", mktime(0,0,0,$cmonth,$eventdate,$cyear));
should, if I understand it correctly, fill the variable $dayname with the
three-letter abbreviation of the day of the week for
10 matches
Mail list logo