Another question about formatting date & time
Hey all~ Recently I set up a simple database for a "News and Updates" page. Basically it's just a comment field that is stored with a current timestamp. It's almost the way I want it but I'm having...
View ArticleRe: Another question about formatting date & time
The timestamp in strftime should not be a string date as yours appear to be, it should be a unix timestamp
View ArticleRe: Another question about formatting date & time
To further elaborate if you use a time stamp column in MySQL its going to convert whatever you put in there to its timestamp format... If its an int it will assume its unix time, if its a string it...
View ArticleRe: Another question about formatting date & time
Okay, So I guess I didn't ask the question correctly. What I want to do is take the timestamp out of the database and change it from this: 2008-05-10 02:21:02 to this: Sat, 10 May, 2008 02:21AM without...
View ArticleRe: Another question about formatting date & time
the problem is that 2008-05-10 02:21:02 is not a timestamp but a date... a timestamp is an integer representing the number of seconds past since 1st Jan 1970 IRC. I would suggest pulling the date out...
View ArticleRe: Another question about formatting date & time
something like "SELECT UNIX_TIMESTAMP(datefield) as mytimestamp" Then use mytimestamp in the php funtion according to the formating instructions at http://uk.php.net/date
View ArticleRe: Another question about formatting date & time
I got it to work!! I was digging around on the net and found someone who did a similar thing to what I was trying and here's what I ended up with:<?php do { $datetime =...
View Article