本文へスキップ
RandNext
Esc

ランダム日付生成

好きな2つの日付の間からランダムに日付を——テストデータ、執筆のお題、ゲームの予定、サプライズのお出かけ日に。平日だけ・週末だけにもできます。

  • 好きな期間
  • 平日だけ・週末だけ
  • 最大50日

あなたの日付

    ランダム日付 API

    ランダム日付 の結果を JSON で取得できます。読み取り専用で、少量の利用なら API キーは不要、クロスオリジンのリクエストにも対応しています。

    GET/api/v1/tools/random-date
    curl https://randnext.com/api/v1/tools/random-date?start=2026-01-01&end=2026-12-31&count=3

    パラメーター

    パラメーター型説明(英語)初期値 / 使える値
    startdateFirst eligible date, inclusive, in YYYY-MM-DD format. Defaults to January 1 of the current year.任意YYYY-MM-DD
    enddateLast eligible date, inclusive, in YYYY-MM-DD format. Defaults to December 31 of the current year.任意YYYY-MM-DD
    filterstringLimit eligible dates to all days, weekdays, or weekends.初期値:anyany, weekdays, weekends
    countintegerNumber of results to return.初期値:11〜50
    uniquebooleanWhen true, the response will not contain the same date twice.初期値:truetrue または false
    sortbooleanWhen true, return selected dates in chronological order.初期値:truetrue または false
    パラメーター、レスポンス、制限を見る →

    こちらもおすすめ

    使い方

    1. 1開始日と終了日を設定します。
    2. 2対象の曜日と個数を選びます。
    3. 3「生成」を押して日付をコピーします。

    よくある質問

    開始日と終了日も含まれますか?

    はい。期間の両端の日付も選ばれる可能性があります。

    どの日も同じ確率ですか?

    はい。期間内の対象となる日はすべて同じ確率です。