Re: time and timestamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jay Blanchard wrote:
[snip]
Now I am not worried about the time but I would like to know how to

(i) sort the returned rows in order (latest first)

add ORDER BY `yourdatefield` DESC to your SQL

(ii) be able to extract the individual parts of the date and display
them in UK format

Have no idea what is 'UK format'. But you can use the DATE_FORMAT MySQL function to do the same

DATE_FORMAT(`yourdatefield`, '%m.%d.%Y') as `date_formatted` [...]

Also, http://php.net/date

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux