1
ccrstudioweb
integer to date format

Hi,
I could´t find answer.
I made a script that call some "news module" data.
The problem is about date:
I have something like "1234567890" instead of "19 de fevereiro de 2009".

How can I convert integer to my date format?
I´v found about intvar, strval, but I cound´t discovery how to use it....

$result mysql_query("SELECT * FROM 3b5s_stories ORDER BY -storyid"); if($row mysql_fetch_array($result)){ 
$dada $row["created"];   
echo 
$dada// returns "1234567890" instead of "19 de fevereiro de 2009" 
...
}


Any help is very welcome!

2
Mazar
Re: integer to date format
  • 2010/2/19 22:54

  • Mazar

  • Not too shy to talk

  • Posts: 191

  • Since: 2009/1/4 0


.formatTimeStamp($dada,"s");

or do something like this
date("Y-m-d"strtotime($row['date']));

3
ccrstudioweb
Re: integer to date format

Thank you Mazar!
I used this:
date("Y-m-d"strval($row["created"]))

Login

Who's Online

229 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits