| MONTHASSTRING | |
| 説明
month_number に対応する月の名前を確認します。 |
|
| 戻り値
特定の月の名前を表す現在のロケールの文字列 |
|
| カテゴリ
日付および時刻関数、文字列関数 |
|
関数のシンタックスMonthAsString(month_number) |
|
| 関連項目
DatePart、Month、Quarter |
|
| パラメータ
|
|
例<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>
|
|
| MONTH_NUMBER | |
| 1 〜 12 の整数 | |