"David Carlos Brunstein" <[EMAIL PROTECTED]> wrote:
> 
> By these days I'm facing a system DB migration to MySQL (the last
> production version) and I have the followin problem. All the SELECTs
> sentences are all over the application, and for date/datetime filters
> are using the dd/mm/yyyy format in the WHERE clause. Is the same in the
> INSERT/UPDATE statementes.
> 
> I've studied with MySQL documentation, that use the yyyy-mm-dd format
> for the internal storage and for the data interchange with the clients.
> 
> So the questions are: Is there any way to set the date/datetime format
> to MySQL engine, so the client can see it as dd/mm/yyyy? Is there any
> solution with no change to the client application code?

Use DATE_FORMAT() function to retrieve dates in the specific format:

        http://dev.mysql.com/doc/mysql/en/Date_and_time_functions.html

But in this case you should rewrite your queries.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to