[PHP] Re: convert postgres date to PHP

2006-11-11 Thread M.Sokolewicz
You get that because your input is not a unix timestamp, it's a RFC 3339 formatted date-/timestamp. You first need to convert it (using ie. strtotime, or explode() and feeding it to mktime()) to a unix timestamp before you can feed the unix timestamp to the date() function. Unix timestamps are

[PHP] Re: convert postgres date to PHP

2006-11-11 Thread Alain Roger
Sorry to tell you that but that's why i ask here this question, because i get everytime 01.01.1970.. RTFM i did ! On 11/11/06, M.Sokolewicz <[EMAIL PROTECTED]> wrote: well, I could say RTFM, but I'll help you this time with a few links: 1. date() http://www.php.net/manual/en/function.date.php 2

[PHP] Re: convert postgres date to PHP

2006-11-11 Thread M.Sokolewicz
well, I could say RTFM, but I'll help you this time with a few links: 1. date() http://www.php.net/manual/en/function.date.php 2. strtotime() http://www.php.net/manual/en/function.strtotime.php - tul P.S. RTFM! Alain Roger wrote: Hi, in my database PosgreSQL i have stored some date in the fol