I have a String variable which has dynamic user entered text
EX:- <cfset setPars="SPTO_DATE('04/11/2009 11:59:59 PM', 'MM/DD/YYYY HH:MI:SS AM')SP(L','MN)>'
Now If I use SP
as the delimiter
in CFloop as below
<cfloop index="i" from="1" To="#ListLen(setPars,'SP')#">
<br/> #ListGetAT(setPars,i,'SP')#
</cfloop>
I am getting output As
TO_DATE('04/11/2009 11:59:59
M', 'MM/DD/YYYY HH:MI:
But I want as
TO_DATE('04/11/2009 11:59:59 PM', 'MM/DD/YYYY HH:MI:SS AM')
(L','MN)
Is there any way in Coldfusion to do that?
Thanks