Posted by Preben on 02/25/07 19:42
> How do I parse a date with PHP version 4.
>
> The problem is that the date-format is like:
>
> d-m-Y ( 15-08-2006 )
>
>
> but strtotime won't accept this even though the setlocale function has
> been used:
> setlocale( LC_ALL, "da_DK", "da", "dan", "danish", "da_DK.ISO8859-1" );
I tried to list all the locales on the server - and there are none.. So
that's probably why.
So now I just used the split-function to parse the date manually.
[Back to original message]
|