Dear Claudemir,

> No. This is the standard format. You can, however, reformat the
> result sets according to your needs.

The function is DATE_FORMAT, and a SELECT statement will look like this:

SELECT DATE_FORMAT(time_field, "%d-%m-%Y) FROM tbl

This will output 2001-07-27 as 27-07-2001.

Have a deep look into
http://www.mysql.com/doc/D/a/Date_and_time_functions.html for details.

Regards,

--
  Stefan Hinz
  Geschäftsführer / CEO iConnect e-commerce solutions GmbH
  #  www.js-webShop.com www.iConnect.de
  #  Gustav-Meyer-Allee 25, 13355 Berlin
  #  Tel: +49-30-46307-382  Fax: +49-30-46307-388

----- Original Message -----
From: "Werner Stuerenburg" <[EMAIL PROTECTED]>
To: "Claudemir F. Martins" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 9:49 AM
Subject: Re: Date Format in MySQL


>
>
> Claudemir F. Martins schrieb am Donnerstag, 26. Juli 2001, 21:03:59:
>
> > Is possible to change the MysQL Date fromat from yyyy-mm-dd  to
dd-mm-yyyy  ?
>
> No. This is the standard format. You can, however, reformat the
> result sets according to your needs. This format allows easy
> manipulation of date data in contrast to many of those accustomed
> to by local cultures.
>
>
>
> --
> Herzlich
> Werner Stuerenburg
>
> _________________________________________________
> ISIS Verlag, Teut 3, D-32683 Barntrup-Alverdissen
> Tel 0(049) 5224-997 407 · Fax 0(049) 5224-997 409
> http://pferdezeitung.de
>
>
>
> ---------------------------------------------------------------------
> 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
>
>


---------------------------------------------------------------------
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

Reply via email to