User:Syranzi/Documentation/How Tos/Calc: EDATE function

From Apache OpenOffice Wiki
Jump to: navigation, search

EDATE

EDATE

Returns a date a number of months away.

指定された月数だけ先または後の日付を返します。

This function is only available if the Analysis AddIn is installed.

この機能は、Analysis AddIn (分析アドイン) がインストールされている場合のみ使用可能です。


Syntax:

構文:

EDATE(startdate; months)

months is a number of months that are added to the startdate. The day of the month remains unchanged, unless it is more than the number of days in the new month (when it becomes the last day of that month).

EDATE(開始日付; 月数)

「月数」「開始日付」に加算される月の数です。月の何日目であるかは開始日付と変わりません。ただし、導き出された月にある日数を超える場合は、その月の末日扱いになります。
months may be negative.
月数は負数でもかまいません。

Example:

例:

EDATE("2008-10-15"; 2)

returns 15Dec08.

EDATE("2008-10-15"; 2)

「08 年 12 月 15 日」を返します。

EDATE("2008-05-31"; -1)

returns 30Apr08. There are only 30 days in April.

EDATE("2008-05-31"; -1)

「08 年 4 月 30 日」を返します。4 月には 30 日しかないためです。

Issues:

課題:

EDATE returns a date-time serial number, which must be manually formatted to display as a date. This complies with the ODFF standard.

EDATEは日付・時刻のシリアル値を返しますが、日付として表示させるには手動で設定する必要があります。これは ODFF 標準に適合しています。



See Also

関連項目

Personal tools