View Single Post

  #2 (permalink)  
Old 02-25-2007
Preben
 
Posts: n/a
Default Re: PHP4 date parsing

> 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.
Reply With Quote