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

<HTML>

<HEAD>
<TITLE>
IsLeapYear Example
</TITLE>
</HEAD>

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

<H3>IsLeapYear Example</H3>

<CFIF IsDefined("form.theTestValue")>

	<CFIF IsLeapYear(form.theTestValue)>
	<H3>The year value <CFOUTPUT>#DE(form.theTestValue)#</CFOUTPUT> is a Leap Year</H3>
	<CFELSE>
	<H3>The year value <CFOUTPUT>#DE(form.theTestValue)#</CFOUTPUT> is not a Leap Year</H3>

	</CFIF>


</CFIF>

<FORM ACTION="isleapyear.cfm" METHOD="POST">
<P>Enter a year value, and find out if it is a valid Leap Year.

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

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

</FORM>

</BODY>

</HTML>       
    
