@ 10:56:48 PM on 4/15/2001, Brian Clark wrote:
...
> function decipherDate($string, $format)
> {
Oops, you'll probably want to give $format a default value if one
isn't passed. And maybe change the returns if you want to do something
like:
if(!decipherDate('blah'))
...
>if(!$formatted = @
Hi Sandeep,
@ 10:33:16 PM on 4/15/2001, Sandeep Hundal wrote:
...
> NOw they will probably be given a form which allows them to choose,
> and then gets inputted into the datase as a number : MMDD. But I
> want to display the data as "Monday, 20 April 2001. How can I do
> this?
Yes, with str
Hi,
All you need is to insert the data into the database as
MMDD
and then pull it out reformatting it with mySQL functions:
SELECT
DATE_FORMAT(date, "%W, %e %M %Y") AS date
FROM
table
;
this will return you the date in "Monday, 20 A
3 matches
Mail list logo