List:MySQL on Win32« Previous MessageNext Message »
From:Sinisa Milivojevic Date:October 26 1999 11:28am
Subject:Re: Changing MYSQL Date Format.
View as plain text  
On Tue, 26 Oct 1999, William Kerber wrote:
>Whenever I insert a date into a field by calling now().  It puts it in the
>Form yyyy-mm-dd .  Is there any way I can get it to store in the format
>dd-mm-yyyy ?
>
>I am calling the database from PHP3.
>
>thanks for any help
>william
>
>
>

Yes, there is.

Please read a manual on date_format function. It allows all possible formating
of date/time output.

Sinisa

+----------------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___     ==  mysql@stripped            |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic          |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:sinisa@stripped|
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaka, Cyprus             |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                             |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                            |
|             /*/             \*\                Developers Team       |
+----------------------------------------------------------------------+
Thread
mySQL on Win2000Alain Fontaine25 Oct
  • RE: mySQL on Win2000Brian Andrews25 Oct
    • RE: mySQL on Win2000Michael Widenius13 Nov
  • Changing MYSQL Date Format.William Kerber26 Oct
    • Re: Changing MYSQL Date Format.Bob Kline26 Oct
    • Re: Changing MYSQL Date Format.Sinisa Milivojevic26 Oct
  • Storing Binary ContentWilliam Kerber26 Oct
    • Re: Storing Binary ContentBob Kline26 Oct
  • Re: Changing MYSQL Date Format.Tonu Samuel26 Oct
  • Re: Storing Binary ContentTonu Samuel26 Oct
    • Re: Storing Binary ContentTim Endres26 Oct
      • Re: Storing Binary ContentTonu Samuel26 Oct
        • Re: Storing Binary ContentTim Endres26 Oct