Date formatting
#1

Anyone know of a way to format a timestamp into readable format? Like January 1, 2008.
Reply
#2

http://pawno.pastebin.com/m3b2dd07d

Untested
Reply
#3

That's a good start but it uses the current time, so it knows the day and month and all. I'm looking for something that can be handed a timestamp, like PHP's date(). Also that code snippet would be more efficient with an array of month names rather than a control structure.
Reply
#4

http://pastebin.com/f27b8bbb2

More or less the same.

You can't get too far with it though. I believe you are expecting something like this "Thursday 25th of June 2009 05:08:55 AM", but no not really possible.
Reply


Forum Jump:


Users browsing this thread: