From: Dan Nelson Date: February 24 2003 10:46pm Subject: Re: mysql or pathon date question List-Archive: http://lists.mysql.com/mysql/133281 Message-Id: <20030224224656.GF56943@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 dnelson@stripped sql, query