RE: [PHP-DB] Date formats from Postgres

2001-05-11 Thread Steve Brett
use $date=("d/m/Y",strtotime(value_from_db)); strtotime will convert a string value to a timestamp. Steve > -Original Message- > From: Sean Weissensee [mailto:[EMAIL PROTECTED]] > Sent: 10 May 2001 11:13 > To: PHPDB > Subject: [PHP-DB] Date formats from Postgres > > > > I am reading

Re: [PHP-DB] Date formats from Postgres

2001-05-10 Thread Alexey Borzov
Greetings, Sean! At 10.05.2001, 14:08, you wrote: SW> I am reading a data datatype from a PostgreSQL database, SW> the format sohwing is 2001-01-05 for the 1st of May this year, Isn't it 2001-05-01? SW> I need this date in Australian format i.e. 01/05/2001, SW> I tried using the string d