Monthasstring - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

MonthAsString

Description
Determines the name of the month that corresponds to month_number.
Returns
A string; the name of a month.
Category
Date and time
functions,
Function syntax
MonthAsString(month_number)
See also
DatePart, Month,
Parameters
Parameter
month_number
Example
<h3>MonthAsString Example</h3>
<cfif IsDefined("FORM.year")>
<p>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>
String functions
Quarter
Description
An integer in the range 1 – 12.
MonthAsString
629

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents