<!--- shows the value of the MonthAsString function --->

<HTML>

<HEAD>
<TITLE>
MonthAsString Example
</TITLE>
</HEAD>

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

<H3>MonthAsString Example</H3>

<CFIF IsDefined("form.year")>
More information about your date:
<CFSET yourDate = #CreateDate("#form.year#","#form.month#","#form.day#")#>

<CFOUTPUT>
<P>Your date, #DateFormat(yourDate)#.
<BR>It is #DayofWeekAsString(DayOfWeek(yourDate))#, day #DayOfWeek(yourDate)# in the week.
<BR>This is day #Day(YourDate)# in the month of #MonthAsString(Month(yourDate))#, which has #DaysInMonth(yourDate)# days.
<BR>We are in week #Week(yourDate)# of #Year(YourDate)# (day #DayofYear(yourDate)# of #DaysinYear(yourDate)#).  
<BR><CFIF IsLeapYear(Year(yourDate))>This is a leap year<CFELSE>This is not a leap year</CFIF>
</CFOUTPUT>

</CFIF>


<CFFORM ACTION="monthasstring.cfm" METHOD="POST">
<P>Please enter the year, month and day in integer format for 
the date value you would like to view:
<PRE>
Year	<CFINPUT TYPE="Text" NAME="year" VALUE="1998" VALIDATE="integer" REQUIRED="Yes">
Month	<CFINPUT TYPE="Text" NAME="month" VALUE="6" VALIDATE="integer" REQUIRED="Yes">
Day	<CFINPUT TYPE="Text" NAME="day" VALUE="8" VALIDATE="integer" REQUIRED="Yes">
</PRE>
<P><INPUT TYPE="Submit" NAME=""> <INPUT TYPE="RESET">


</CFFORM>


</BODY>

</HTML>       
