As a matter of habit, I do not use the cfinput tags for validation however
the few times I've reviewed or modified code from other developers who
validate dates this way, this is the behavior I have seen.

In general, when I'm checking the date on the submit, I format it
anyway.....

On Thu, Feb 12, 2009 at 10:22 AM, Ajas Mohammed <[email protected]> wrote:

> Thanks,
>
> Yes, but the big question is why cffrom cfinput would send date in that
> format. Its not the first time I have i used cfinput. Date usually comes
> across in standard date format.
>
> Anyone???
>
> <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.
>
>
> On Thu, Feb 12, 2009 at 10:15 AM, Dawn Hoagland <[email protected]>wrote:
>
>> 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.
>>>
>>
>>
>

Reply via email to