
May 30th, 2000, 09:48 PM
|
|
Contributing User
|
|
Join Date: May 2000
Posts: 33
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
Thanks for the advice, Shiju! I tried, but with no success - PHP seems to process the date in its own format independent of the format specified in the database. It still displays everything as 1999-12-01 00:00:00, though the date is in the short format in Ms Access (01.12.99). I asked on phpbuilder and they advised using:
eregi_replace("([0-9]{2})([0-9]{2})-([0-9]{2})-([0-9]{2})(.*)", "4.3.2", $Date);
How do I do this with mktime()? I doubt if eregi_replace() is a faster function.
Thanks in advance,
Stas
|