RE: [PHP] Problems with date() - SOLVED

2006-09-13 Thread Arno Kuhl
@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

Re: [PHP] Problems with date()

2006-09-13 Thread Ducarom
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

Re: [PHP] Problems with date()

2006-09-13 Thread Frank Arensmeier
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

[PHP] Problems with date()

2006-09-13 Thread Arno Kuhl
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

Re: [PHP] Problems with date and mktime

2002-02-12 Thread Bogdan Stancescu
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

[PHP] Problems with date and mktime

2002-02-12 Thread peke
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

[PHP] Problems with date and mktime on a linux to windows 2000 app porting

2002-02-12 Thread peke
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

[PHP] Problems with date function

2002-02-01 Thread Jorge Arechiga
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

RE: [PHP] Problems with date() - what have I missed?

2001-02-13 Thread Jon Haworth
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/

[PHP] Problems with date() - what have I missed?

2001-02-13 Thread Jon Haworth
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