Hey all,
I have a credit application form, and one of the required elements is the
applicant's Date of Birth. I have creditapp table with a birthdate
field and it is a DATE datatype. On the form, I want to be able to have
them enter their Date of Birth as mm/dd/ and have it go into the
On Fri, 19 Apr 2002, Brandon Paul wrote:
going about it wrong? Any help would be greatly appreciated.
1) Validate that the input is correct.
2) Tokenize the string based on the /s
3) Re-format the date.
Or, use the date functions - I'd swear one of them can re-write dates.
--
PHP Database
A combination of strtotime() and date() can make this easy.
date(Y-m-d, strtotime($birthday))
Or see docs and comments at
http://www.php.net/manual/en/function.strtotime.php
-Steve
On Friday, April 19, 2002, at 01:29 PM, Brandon Paul wrote:
Hey all,
I have a credit application form, and