The optional second parameter for date() is a timestamp.
So, you convert whatever date you have (eg 29.10.2002) into a unix timestamp
(probably using strtotime() or maybe you'll have to rearrange the string
first), then supply it to the date() function.
Justin
on 29/10/02 1:57 AM, Davíð Örn Jó
date('W',strtotime('29.10.2002')); ??
Untested... I don't know if strtotime will recognize that format.
---John Holmes...
- Original Message -
From: "Davíð Örn Jóhannsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Octobe
> Lets say I have a date: 29.10.2002 and I want to be able to find out
> what week number it is, I know how to find out what the current week
> number is: date("W") to day it would result 44, but i need to be able
> to do this dynamically ofcourse, any Ideas?
date( "W", $yourUnixTimeStampDateV
Lets say I have a date: 29.10.2002 and I want to be able to find out
what week number it is, I know
how to find out what the current week number is: date(W) to day it
would result 44, but i need to be
able to do this dynamically ofcourse, any Ideas?
thanks, David
4 matches
Mail list logo