Do a dateformat(formfield,'mm/dd/yyyy') before using the data from the form.
On Thu, Feb 12, 2009 at 9:41 AM, Ajas Mohammed <[email protected]> wrote: > Hi, > > I noticed this in my form submission and dont know why cfinput with > validation would show date as *{d '2009-02-12'} *whereas regular input > would show same value as* 02/12/2009* . See code below : > > <cfloop from="1" to="10" index="thisrow"> > > <cfinput type="text" name="absence_date#thisrow#" size="10" value="" > validate="date" validateat="onBlur,onSubmit,onServer" message="You have > entered an invalid date. Date's should be in this format MM/DD/YYYY or > MM-DD-YYYY."> > > <input type="text" name="absence_date_txtbox_#thisrow#" size="10" value=""> > > </cfloop> > > so in this form, i entered 02/12/2009 in both the textboxes and i get weird > output. > > Any ideas??? I am I missing something obvious here??? > > > <Ajas Mohammed /> > http://ajashadi.blogspot.com > We cannot become what we need to be, remaining what we are. > No matter what, find a way. Because thats what winners do. > You can't improve what you don't measure. > Quality is never an accident; it is always the result of high intention, > sincere effort, intelligent direction and skillful execution; it represents > the wise choice of many alternatives. >
