<!--- This example shows the use of IsNumericDate --->

<HTML>

<HEAD>
<TITLE>
IsNumericDate Example
</TITLE>
</HEAD>

<BASEFONT FACE="Arial, Helvetica" SIZE=2>
<BODY  bgcolor="#FFFFD5">

<H3>IsNumericDate Example</H3>


<CFIF IsDefined("form.theTestValue")>
<!--- test if the value is Numeric or a pre-formatted Date value --->

	<CFIF IsNumeric(form.theTestValue) or IsDate(form.theTestValue)>
<!--- if this value is a numericDate value, then pass --->
		<CFIF IsNumericDate(form.theTestValue)>
		<H3>The string <CFOUTPUT>#DE(form.theTestValue)#</CFOUTPUT> is a valid numeric date</H3>
		<CFELSE>
		<H3>The string <CFOUTPUT>#DE(form.theTestValue)#</CFOUTPUT> is not a valid numeric date</H3>
	
		</CFIF>
	<CFELSE>
	<H3>The string <CFOUTPUT>#DE(form.theTestValue)#</CFOUTPUT> is not a valid numeric date</H3>
	</CFIF>

</CFIF>

<FORM ACTION="isnumericdate.cfm" METHOD="POST">
<P>Enter a string, and discover if
it can be evaluated to a date value.

<P><INPUT TYPE="Text" NAME="TheTestValue" VALUE="<CFOUTPUT>#Now()#</CFOUTPUT>">

<INPUT TYPE="Submit" VALUE="Is it a Date?" NAME="">


</FORM>



</BODY>

</HTML>       
  
