468,291 Members | 1,436 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,291 developers. It's quick & easy.

strftime function problem

Hi,

I've got a problem with the strftime function...

this is my code :

setlocale(LC_ALL, 'en') ;
echo strftime("'%B'", strtotime('2006-09-03 00:00:00')) . "<br />" ;
echo strftime("'%e'", strtotime('2006-09-03 00:00:00')) ;

as I expected :

'September'
'3'

I got :

'September'
''

Do you know why ?

Thanks in advance,

--
phil
Sep 3 '06 #1
2 1189
phil wrote:
I got :

'September'
''

Do you know why ?
I guess you are working on a Windows system, which doesn't support this.
Have a look at the following page, where I posted a workaround a while a go:

http://nl2.php.net/manual/en/functio...time.php#53340
JW
Sep 3 '06 #2
>
I guess you are working on a Windows system, which doesn't support this.
Have a look at the following page, where I posted a workaround a while a
go:

http://nl2.php.net/manual/en/functio...time.php#53340
JW
Yes, you're right.
Thank you for your help.

--
phil
Sep 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Richard Shea | last post: by
1 post views Thread by Allen Unueco | last post: by
4 posts views Thread by John Hunter | last post: by
4 posts views Thread by Andy Leszczynski | last post: by
1 post views Thread by Dennis Benzinger | last post: by
3 posts views Thread by HSeganfredo | last post: by
2 posts views Thread by Giovanni Bajo | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.