To Get a Date into MySql: there must be a better way.
- From: "hugh webster" <hwebster@xxxxxxxxxx>
- Date: Sat, 11 Mar 2006 19:49:57 +0100
MySql seems to only accept dates as 'yyyy-mm-dd'. How do I do that when the user might input dd/mm/yy, or d.m.yyyy (I'm in Europe)? I know I can do sscanf, or explode to rebuild the date string - but there must be a better way. Is there a FAQ somwhere?
tks.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.
- Follow-Ups:
- Re: To Get a Date into MySql: there must be a better way.
- From: Scott
- Re: To Get a Date into MySql: there must be a better way.
- From: Tony Marston
- Re: To Get a Date into MySql: there must be a better way.
- From: Sandman
- Re: To Get a Date into MySql: there must be a better way.
- From: Jerry Stuckle
- Re: To Get a Date into MySql: there must be a better way.
- Prev by Date: Re: how do people feel about the PEAR db class?
- Next by Date: Re: Form Security
- Previous by thread: String Of Text (Number of Pixels / Pixel Size / Pixel Length)
- Next by thread: Re: To Get a Date into MySql: there must be a better way.
- Index(es):
Relevant Pages
|