Jump to content

[SOLVED] Formatting a MySQL DB Timestamp on Echo


OLG

Recommended Posts

Yes, i did know about the date format, but it keeps throwing out the wrong dates :P

 

I don't think its 2038 quite yet

 

What format is your timestamp in? Is it a unix timestamp?

 

If not look into www.php.net/strtotime

 

The issue lies within the timestamp, not the date function.

I'm not actually sure, i've just changed over to a Plesk Server (8.1.1, using Virtuozzo, so i guess not) and am now having problems (its an older MYSQL Version)

 

its arranged YYYYMMDDHHMMSS (Year, Month, Day, Hour, Minute, Seconds)

 

strtotime returns -1, so i guess its telling me to go blow a fish right?

 

I might just do a regular expression match, use some backreferences and re-organise it and just leave it like that, can't be assed to screw around with a timestamp.

Archived

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

×
×
  • Create New...

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.