I am have a string named begin_date which contain date in the format dd.mm.yyyy e.g
11.04.2012
from that I am trying to create a Coldfusion Date like
<input type="hidden" name="begin_date" value="#CreateDate(ListLast(begin_date,'.'),ListGetAt(begin_date,2,'.'),ListFirst(begin_date,'.'))#" />
but I am getting the following error message
The value undefined cannot be converted to a number
The
CreateDatefunction requires 3 parameters as follows:Try the following:
More information about the
CreateDatefunction can be found at http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_09.html.