|
Re: DATE_FORMAT(): msg#01109db.mysql.general
On Fri, 28 Jun 2002 10:29:35 -0800, Jason Soza wrote: >Hey, > >I have a table with a 'birthdate' column, stored in DATE format, >YYYY-MM-DD. >I want queries of this table to present the birthdate in MMMM DD, >YYYY >format. I know how to do DATE_FORMAT('2002-06-29', '%M %e, %Y'), but >I can't >figure out how to work that into my SQL. I've tried SELECT *, >DATE_FORMAT('birthdate', '%M %e, %y') FROM table, and variations >thereof. >The manual doesn't really give good examples of how to do this... > >Any help would be extremely appreciated. Thanks! > >Jason Soza > try SELECT DATE_FORMAT(birthdate, '%M %e, %y') formatedDate FROM table formattedDate should contain the information you want -- this can be any thing.. you are just giving a name that points to the data -z -- z, admin@xxxxxxxxxxxxxxx on 06/28/2002 --------------------------------------------------------------------- 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 <mysql-thread113358@xxxxxxxxxxxxxxx> To unsubscribe, e-mail <mysql-unsubscribe-gcdmg-mysql=m.gmane.org@xxxxxxxxxxxxxxx> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: sum the values in a group by statement....: 01109, Cal Evans |
|---|---|
| Next by Date: | Re: Increasing number of open_files -- no takers on this one?: 01109, Dan Nelson |
| Previous by Thread: | Re: DATE_FORMAT()i: 01109, Mikhail Entaltsev |
| Next by Thread: | Case Insensitivity of queries and record lookup: 01109, Mark Hennessy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |