You could try working with strtotime, but I doubt it will accept that date format. strptime should when your locale is set on english
Try:
$array = strptime($date, '%b %e %Y %H:%M%r'); //(when using Oct 1 2006)
or
$array = strptime($date, '%b %d %Y %H:%M%r'); //(when using Oct 01 2006)
$stamp = mktime($array['tm_hour'], $array['tm_min'], $array['tm_sec'], $array['tm_mon'], $array['tm_mday'], $array['tm_year']);
echo date('d/M/Y/, $stamp);
-r-
Main Topics
Browse All Topics





by: angelIIIPosted on 2006-10-25 at 02:01:11ID: 17801789
>ive got a MSSQL date / time format like:
), yourfield, 106) , ' ' , '/') from yourtable
library/de fault.asp? url=/libra ry/ en-us/t sqlref/ts_ ca-co_2f3o .asp
>Oct 24 2006 12:00AM
do you actually have a datetime field or a varchar field?
on a datetime field, use the convert in the query itself:
select convert(varchar(40), yourfield, 106) from yourtable
resp:
select replace(convert(varchar(40
http://msdn.microsoft.com/