Hi all,

I asked this question on the PHP-DB list but everyone was asleep (no
response).

=====  =====  ===== ===== ===== ===== =====
I have a site where dates are being displayed and also entered by users. I
don't want to offend them by asking them to use the yyyy-mm-dd format or to
split the date into its constituent parts.

I am displaying by using the MySQL Date_Format syntax and that's fine. I get
dd/mm/yyyy and I want to be able to have the user enter 'dd/mm'yyyy' into a
form and have it put into MySQL in the yyyy-mm-dd format.

Now I have written a function in php to do this but I might be missing an
easier, more elegant/efficient way of doing this.

Any suggestions?

George P, in Edinburgh



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