Hi, I posted a while back about inserting the current time into a mysql db and was told to do so using the now() function.
When I recall this value it looks something like:
2007-02-24 14:59:42
I would like to format this as
Monday 24th Feb 2007, 14:59 (drop the tenth of seconds)
Anyone know how I can do this? I really do not have a clue. Also I want to be able to format the date to say 'today' or 'yesterday' if appropriate otherwise display like the format i mentioned.
Would appreciate any help on this.
When I recall this value it looks something like:
2007-02-24 14:59:42
I would like to format this as
Monday 24th Feb 2007, 14:59 (drop the tenth of seconds)
Anyone know how I can do this? I really do not have a clue. Also I want to be able to format the date to say 'today' or 'yesterday' if appropriate otherwise display like the format i mentioned.
Would appreciate any help on this.