Data Filter(データフィルター)および Journey Builder の日付型フィールドに月単位演算子(「今日 + 1 ヶ月」「今日 - 1 ヶ月」など)を指定した際、計算結果の日付が対象月に存在しない場合は月末日が自動的に選択されます。本記事では代表的なパターン別の動作と、うるう年の 2/29 を含む計算についても解説します。
月単位の演算(「+1ヶ月」「-1ヶ月」など)を行う際、システムは以下の優先順位で対象日を自動決定します。
同日が存在する場合: 翌月または前月の同じ日付がそのまま選択されます。
同日が存在しない場合(末日フォールバック): 対象月にその日付が存在しない場合は、その月の末日が自動選択されます。
Q. 今日が 1/31 で「今日 + 1 ヶ月」を指定した場合、何日のレコードが対象になりますか?
A. 2/28 が対象となります(うるう年の場合は 2/29)。 2月に31日は存在しないため、2月の末日である 2/28 が自動的に選択されます。うるう年の場合は、2/29 が末日となるため 2/29 が選択されます。
Q. 月末以外の日付(例:1/15 や 1/30)で「今日 + 1 ヶ月」を指定した場合はどうなりますか?
A. 指定した日付が「計算先の月に存在するかどうか」で動作が変わります。
1/15 の場合(2/15 が対象): 2月に15日は存在するため、翌月の同日である 2/15 がそのまま選択されます。
1/30 の場合(2/28 または 2/29 が対象): 月末日の指定ではありませんが、2月に30日は存在しないため、基本ルールに沿って2月の末日(2/28 または 2/29)が自動的に選択されます。
Q. 上記の動作は Journey Builder の判断分岐アクティビティや終了条件でも同じですか?
A. はい、まったく同じ動作となります。 共通の日付演算ロジックを使用しています。判断分岐アクティビティの条件設定、および終了条件に日付型フィールドと月単位演算子を組み合わせた場合も、すべて上記と同じルールが適用されます。
005387396

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.