jun 15 2004

moving along...

ok so i've added a comments thing for these posts. but... hmm, i really don't get it. i try to format the date on the comments page to read like on the home page and in the left hand navigation, but when i do that i get "thu, 1 jan 1970". i have the following code:

$formatdate = date("D, d M Y", $timestamp);
echo "$formatdate º $author";
if i don't format it doesn't look like the rest of the site but it shows the right date... how can i format it without losing the data?

i will update the galleries very soon. i have to put up my sky-diving pictures, yeah i went sky-diving. all by myself, none of that tandem crap! it was a brilliant b-day pressie from my hubby... his b-day is coming up at the end of the month and i'm in a mad rush to top his gift. any ideas?

Posted by sarah | web

comments

sarah | 2004-06-30 11:29:20
thanks coda... that worked! :)
coda | 2004-06-29 09:33:32
last stab, I think I was overlooking it all ;)
try this:
date("D, d M Y", strtotime($timestamp));
sarah | 2004-06-21 20:36:29
yes. but if i could i would like to get formatting on the date on this page as on the others. check i've taken the formatting off.
coda | 2004-06-20 14:15:38
does it work when you just echo $timestamp with no formatting?
sarah | 2004-06-18 22:16:51
that's the date field in my database for the blog post. i even tried to format that directly as opposed to creating another variable. but it also gave the very first date... it's strange isn't it?
coda | 2004-06-18 19:26:11
what is $timestamp?
sarah | 2004-06-16 12:49:28
i'm stumped, i tried what you suggested damien and i'm still getting the wrong date?

echo $formatdate." º ".$author;

oh and sorry about the lowercase forcing... i just feel a need to have everything in lowercase! ;)
sarah | 2004-06-15 21:04:19
thanks damien. i'll check it out and see what happens...
coda | 2004-06-15 17:34:41
try removing the variables from the quotes maybe? ie: echo $formatedate." º ".$author;

Looking good otherwise. I laughed when I realised you were purposely disallowing capitals in this comment box, I kept thinking my Caps lock key was dysfunctional. lol

add a comment

verification image, type it in the box