dagger2002
Programmer
Hey all hopefully i have a quick fix problem.
I have a database that is holding a date of a message. But I need to format it on the screen, different from how it is being stored in the db.
Being stored as: YYYY-MM-DD
Need MMM(Jan), YYYY
Here is what I have tried:
and
The Date it is displaying on the screen is Dec 31, 1969.
Any ideas?
I have a database that is holding a date of a message. But I need to format it on the screen, different from how it is being stored in the db.
Being stored as: YYYY-MM-DD
Need MMM(Jan), YYYY
Here is what I have tried:
Code:
date("M, d Y", $row[sto_date])
Code:
$msgDate = subStr($row[sto_date], 0, 10);
date("M, d Y", $msgDate)
The Date it is displaying on the screen is Dec 31, 1969.
Any ideas?