Hi,
I am trying to use the following function:
echo date("M", $i)
to echo the date that the value of a variable, $i, represents (eg. 1 =
Jan, 5 = May, 11 = Nov). Unfortunetely, it returns only Jan for any
number which I assume is the 1970 date that this function returns when
you screw up. I know that when I have the string value of '2005-05-01'
in a variable, I have to convert it in the following function:
echo date("M", strtotime($strd ate))
Is something similar required when I use an integer? Thanks
Burnsy
I am trying to use the following function:
echo date("M", $i)
to echo the date that the value of a variable, $i, represents (eg. 1 =
Jan, 5 = May, 11 = Nov). Unfortunetely, it returns only Jan for any
number which I assume is the 1970 date that this function returns when
you screw up. I know that when I have the string value of '2005-05-01'
in a variable, I have to convert it in the following function:
echo date("M", strtotime($strd ate))
Is something similar required when I use an integer? Thanks
Burnsy
Comment