<cfinput type="datefield"> question
Is it possible to pass a value to a datefield cfinput?
I have an edit form that is auto filled from a database - I can fill text fields by passing value to them. I tried value and default in the type="datefield" and it doesn't seem to work.
<cfset ThisDate= "2016/01/20">
<cfform id="Add" name="Add" method="post" action="UpdateDonation.cfm" >
<cfinput name="test" type="text" value="#ThisDate#"> <--- Works but no date picker
<cfinput name="test" type="text" mask="yyyy/mm/dd" default="#ThisDate#"> <--- date picker, but no date prefilled
<cfinput name="test" type="datefield" mask="yyyy/mm/dd" default="#ThisDate#"> <---- Gives error
</cfform>
What am I doing wrong?
Thanks!
