month_number に対応する月の名前を確認します。
特定の月の名前を表す現在のロケールの文字列
MonthAsString(month_number)
| パラメータ | 説明 |
|---|---|
|
month_number |
1 ~ 12 の整数 |
<h3>MonthAsString の例</h3>
<cfif IsDefined("FORM.year")>
<p>日付の詳細情報 :
<cfset yourDate = CreateDate(FORM.year, FORM.month, FORM.day)>
<cfoutput>
<p>日付 : #DateFormat(yourDate)#
<br>この日は #DayofWeekAsString(DayOfWeek(yourDate))# 曜日で、
週の #DayOfWeek(yourDate)# 日めです。
<br>この日は、
#MonthAsString(Month(yourDate))# 月の #Day(YourDate)# 日めです。この月は全部で
#DaysInMonth(yourDate)# 日です。
<br>この日は、#Year(yourDate)# 年の #Week(yourDate)# 週め
(#DayofYear(yourDate)# 日め) です。この年は全部で #DaysinYear(yourDate)# 日です。<br>
<cfif IsLeapYear(Year(yourDate))>この年は閏年です。
<cfelse>この年は閏年ではありません。
</cfif>
</cfoutput>
</cfif>
ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX* | ColdFusion 5* | フォーラム* | デベロッパーセンター | サポート情報 | バグ報告
バージョン7