{
  "id": "days-until-june-10",
  "version": "2b4b0bc7d0c7",
  "status": "published",
  "name": "Days Until June 10",
  "question": "Days until June 10",
  "summary": "Counts the days from today, or any date you choose, to the next June 10, with its day of the week.",
  "category": "days",
  "subcategory": "countdowns",
  "url": "https://www.acalculator.org/days/days-until-june-10",
  "markdown": "https://www.acalculator.org/days/days-until-june-10.md",
  "kind": "function",
  "method": "Find the first June 10 on or after the start date, then count the days from the start date to it.",
  "assumptions": [
    "June 10 comes every year, so the count is never more than 365 days.",
    "The start date itself is not counted: from the day before June 10, the count is 1; on June 10 itself, it is 0.",
    "Start dates from January 1, 1900 to December 31, 2400 work for the count to June 10, the range the date field accepts.",
    "Today is the date on your own device, so the count to June 10 changes at midnight where you are. Dates are whole calendar days, so a daylight-saving change never adds or loses a day."
  ],
  "inputs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "from": {
        "title": "Count from",
        "description": "The date to count from. Today, unless you change it.",
        "type": "string",
        "format": "date"
      }
    }
  },
  "outputs": {
    "days": {
      "label": "Days until June 10",
      "description": "Whole days from the start date to the next June 10; 0 on the day itself.",
      "format": "integer"
    },
    "date": {
      "label": "Date",
      "description": "The next June 10 on or after the start date.",
      "format": "date-long"
    },
    "weekday": {
      "label": "Day of the week",
      "description": "The weekday of that date.",
      "format": "text"
    },
    "weeks": {
      "label": "In weeks",
      "description": "The same number of days in weeks and days.",
      "format": "text"
    }
  },
  "defaultAnswer": {
    "inputs": {
      "from": "2026-09-30"
    },
    "outputs": {
      "days": 253,
      "date": "2027-06-10",
      "weekday": "Thursday",
      "weeks": "36 weeks and 1 day"
    },
    "text": "From September 30, 2026, there are 253 days until June 10 on Thursday, June 10, 2027."
  },
  "examples": [
    {
      "given": {
        "from": "2027-06-10"
      },
      "expect": {
        "date": "2027-06-10",
        "days": 0
      },
      "source": "U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years); Python 3 datetime (docs/progress/WP-44/truth.py)"
    },
    {
      "given": {
        "from": "2027-01-01"
      },
      "expect": {
        "date": "2027-06-10",
        "days": 160
      },
      "source": "U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years); Python 3 datetime (docs/progress/WP-44/truth.py)"
    },
    {
      "given": {
        "from": "2027-06-11"
      },
      "expect": {
        "date": "2028-06-10",
        "days": 365
      },
      "source": "U.S. Naval Observatory, Leap Years: the Gregorian leap year rule (https://aa.usno.navy.mil/faq/leap_years); Python 3 datetime (docs/progress/WP-44/truth.py)"
    }
  ],
  "sources": [
    "5 U.S.C. 6103 (federal holidays; weekend rule in 6103(b) and Executive Order 11582). Checked against OPM holiday schedules.",
    "Equinoxes and solstices: Jean Meeus, Astronomical Algorithms (2nd ed., 1998), chapter 27, checked against the US Naval Observatory."
  ],
  "related": [
    "days-until-june-9",
    "days-until-june-11",
    "days-until-june-1",
    "days-until-june-2",
    "days-until-june-3",
    "days-until-june-4",
    "days-until-june-5",
    "days-until-june-6",
    "days-until-june-7",
    "days-until-june-8",
    "days-until-june-12",
    "days-until-june-13",
    "days-until-june-14",
    "days-until-june-15",
    "days-until-june-16",
    "days-until-june-17",
    "days-until-june-18",
    "days-until-june-19",
    "days-until-june-20",
    "days-until-june-21",
    "days-until-june-22",
    "days-until-june-23",
    "days-until-june-24",
    "days-until-june-25",
    "days-until-june-26",
    "days-until-june-27",
    "days-until-june-28",
    "days-until-june-29",
    "days-until-june-30",
    "days-between-dates"
  ],
  "changelog": []
}
