Jump to content

Archived

This topic is now archived and is closed to further replies.

willpower

[SOLVED] Format date

Recommended Posts

Hi

I have a variable stored in a DB using the DATETIME method

I now need to format that

I can format using the $now=date (jS, M etc) method

but how do I do it for a defined variable from the DB?

Thanks

Will

Share this post


Link to post
Share on other sites
[code]echo date("n/j/Y h:i:s A", strototime($row['column_name']));[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.