In the last episode (Feb 24), Vivian Wang said: > mysql, > The question is: > > If I use unix date Command like: date -date=20030220 +%j > I will get 051 which is Julian date. > > I like to know how I can get Julian date if I use mysql or Python.
Mysql's date_format function supports the same escapes the date command does, for the most part: mysql> SELECT DATE_FORMAT(20030220,'%j'); +----------------------------+ | 051 | +----------------------------+ 1 row in set (0.00 sec) -- Dan Nelson [EMAIL PROTECTED] sql, query --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php