If you use time groupings (daily, weekly, etc), each group uses
midnight to midnight (Pacific time). The usage end date is
rounded down to include all usage from the specified date. We recommend
that clients pass usage_start_date_time in Pacific time.
If you use time groupings (daily, weekly, etc), each group uses
midnight to midnight (Pacific time). The usage end date is
rounded down to include all usage from the specified date. We recommend
that clients pass usage_start_date_time in Pacific time.
If you use time groupings (daily, weekly, etc), each group uses
midnight to midnight (Pacific time). The usage end date is
rounded down to include all usage from the specified date. We recommend
that clients pass usage_start_date_time in Pacific time.
If you use time groupings (daily, weekly, etc), each group uses
midnight to midnight (Pacific time). The usage start date is
rounded down to include all usage from the specified date. We recommend
that clients pass usage_start_date_time in Pacific time.
If you use time groupings (daily, weekly, etc), each group uses
midnight to midnight (Pacific time). The usage start date is
rounded down to include all usage from the specified date. We recommend
that clients pass usage_start_date_time in Pacific time.
If you use time groupings (daily, weekly, etc), each group uses
midnight to midnight (Pacific time). The usage start date is
rounded down to include all usage from the specified date. We recommend
that clients pass usage_start_date_time in Pacific time.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Channel V1 API - Class Google::Cloud::Channel::V1::DateRange (v2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-DateRange)\n- [2.2.0](/ruby/docs/reference/google-cloud-channel-v1/2.2.0/Google-Cloud-Channel-V1-DateRange)\n- [2.1.0](/ruby/docs/reference/google-cloud-channel-v1/2.1.0/Google-Cloud-Channel-V1-DateRange)\n- [2.0.1](/ruby/docs/reference/google-cloud-channel-v1/2.0.1/Google-Cloud-Channel-V1-DateRange)\n- [1.3.0](/ruby/docs/reference/google-cloud-channel-v1/1.3.0/Google-Cloud-Channel-V1-DateRange)\n- [1.2.0](/ruby/docs/reference/google-cloud-channel-v1/1.2.0/Google-Cloud-Channel-V1-DateRange)\n- [1.1.0](/ruby/docs/reference/google-cloud-channel-v1/1.1.0/Google-Cloud-Channel-V1-DateRange)\n- [1.0.1](/ruby/docs/reference/google-cloud-channel-v1/1.0.1/Google-Cloud-Channel-V1-DateRange)\n- [0.24.0](/ruby/docs/reference/google-cloud-channel-v1/0.24.0/Google-Cloud-Channel-V1-DateRange)\n- [0.23.2](/ruby/docs/reference/google-cloud-channel-v1/0.23.2/Google-Cloud-Channel-V1-DateRange)\n- [0.22.1](/ruby/docs/reference/google-cloud-channel-v1/0.22.1/Google-Cloud-Channel-V1-DateRange)\n- [0.21.0](/ruby/docs/reference/google-cloud-channel-v1/0.21.0/Google-Cloud-Channel-V1-DateRange)\n- [0.20.0](/ruby/docs/reference/google-cloud-channel-v1/0.20.0/Google-Cloud-Channel-V1-DateRange)\n- [0.19.0](/ruby/docs/reference/google-cloud-channel-v1/0.19.0/Google-Cloud-Channel-V1-DateRange)\n- [0.18.0](/ruby/docs/reference/google-cloud-channel-v1/0.18.0/Google-Cloud-Channel-V1-DateRange)\n- [0.17.0](/ruby/docs/reference/google-cloud-channel-v1/0.17.0/Google-Cloud-Channel-V1-DateRange)\n- [0.16.0](/ruby/docs/reference/google-cloud-channel-v1/0.16.0/Google-Cloud-Channel-V1-DateRange)\n- [0.15.0](/ruby/docs/reference/google-cloud-channel-v1/0.15.0/Google-Cloud-Channel-V1-DateRange)\n- [0.14.0](/ruby/docs/reference/google-cloud-channel-v1/0.14.0/Google-Cloud-Channel-V1-DateRange)\n- [0.13.0](/ruby/docs/reference/google-cloud-channel-v1/0.13.0/Google-Cloud-Channel-V1-DateRange)\n- [0.12.0](/ruby/docs/reference/google-cloud-channel-v1/0.12.0/Google-Cloud-Channel-V1-DateRange)\n- [0.11.0](/ruby/docs/reference/google-cloud-channel-v1/0.11.0/Google-Cloud-Channel-V1-DateRange)\n- [0.10.0](/ruby/docs/reference/google-cloud-channel-v1/0.10.0/Google-Cloud-Channel-V1-DateRange)\n- [0.9.5](/ruby/docs/reference/google-cloud-channel-v1/0.9.5/Google-Cloud-Channel-V1-DateRange) \nReference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::DateRange.\n\nA representation of usage or invoice date ranges. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #invoice_end_date\n\n def invoice_end_date() -\u003e ::Google::Type::Date\n\n**Returns**\n\n- ([::Google::Type::Date](./Google-Type-Date)) --- The latest invoice date (inclusive).\n\n\n If this value is not the last day of a month, this will move it forward to\n the last day of the given month.\n\n### #invoice_end_date=\n\n def invoice_end_date=(value) -\u003e ::Google::Type::Date\n\n**Parameter**\n\n- **value** ([::Google::Type::Date](./Google-Type-Date)) --- The latest invoice date (inclusive).\n\n\n If this value is not the last day of a month, this will move it forward to\nthe last day of the given month. \n**Returns**\n\n- ([::Google::Type::Date](./Google-Type-Date)) --- The latest invoice date (inclusive).\n\n\n If this value is not the last day of a month, this will move it forward to\n the last day of the given month.\n\n### #invoice_start_date\n\n def invoice_start_date() -\u003e ::Google::Type::Date\n\n**Returns**\n\n- ([::Google::Type::Date](./Google-Type-Date)) --- The earliest invoice date (inclusive).\n\n\n If this value is not the first day of a month, this will move it back to\n the first day of the given month.\n\n### #invoice_start_date=\n\n def invoice_start_date=(value) -\u003e ::Google::Type::Date\n\n**Parameter**\n\n- **value** ([::Google::Type::Date](./Google-Type-Date)) --- The earliest invoice date (inclusive).\n\n\n If this value is not the first day of a month, this will move it back to\nthe first day of the given month. \n**Returns**\n\n- ([::Google::Type::Date](./Google-Type-Date)) --- The earliest invoice date (inclusive).\n\n\n If this value is not the first day of a month, this will move it back to\n the first day of the given month.\n\n### #usage_end_date_time\n\n def usage_end_date_time() -\u003e ::Google::Type::DateTime\n\n**Returns**\n\n- ([::Google::Type::DateTime](./Google-Type-DateTime)) --- The latest usage date time (exclusive).\n\n\n If you use time groupings (daily, weekly, etc), each group uses\n midnight to midnight (Pacific time). The usage end date is\n rounded down to include all usage from the specified date. We recommend\n that clients pass `usage_start_date_time` in Pacific time.\n\n### #usage_end_date_time=\n\n def usage_end_date_time=(value) -\u003e ::Google::Type::DateTime\n\n**Parameter**\n\n- **value** ([::Google::Type::DateTime](./Google-Type-DateTime)) --- The latest usage date time (exclusive).\n\n\n If you use time groupings (daily, weekly, etc), each group uses\n midnight to midnight (Pacific time). The usage end date is\n rounded down to include all usage from the specified date. We recommend\nthat clients pass `usage_start_date_time` in Pacific time. \n**Returns**\n\n- ([::Google::Type::DateTime](./Google-Type-DateTime)) --- The latest usage date time (exclusive).\n\n\n If you use time groupings (daily, weekly, etc), each group uses\n midnight to midnight (Pacific time). The usage end date is\n rounded down to include all usage from the specified date. We recommend\n that clients pass `usage_start_date_time` in Pacific time.\n\n### #usage_start_date_time\n\n def usage_start_date_time() -\u003e ::Google::Type::DateTime\n\n**Returns**\n\n- ([::Google::Type::DateTime](./Google-Type-DateTime)) --- The earliest usage date time (inclusive).\n\n\n If you use time groupings (daily, weekly, etc), each group uses\n midnight to midnight (Pacific time). The usage start date is\n rounded down to include all usage from the specified date. We recommend\n that clients pass `usage_start_date_time` in Pacific time.\n\n### #usage_start_date_time=\n\n def usage_start_date_time=(value) -\u003e ::Google::Type::DateTime\n\n**Parameter**\n\n- **value** ([::Google::Type::DateTime](./Google-Type-DateTime)) --- The earliest usage date time (inclusive).\n\n\n If you use time groupings (daily, weekly, etc), each group uses\n midnight to midnight (Pacific time). The usage start date is\n rounded down to include all usage from the specified date. We recommend\nthat clients pass `usage_start_date_time` in Pacific time. \n**Returns**\n\n- ([::Google::Type::DateTime](./Google-Type-DateTime)) --- The earliest usage date time (inclusive).\n\n\n If you use time groupings (daily, weekly, etc), each group uses\n midnight to midnight (Pacific time). The usage start date is\n rounded down to include all usage from the specified date. We recommend\n that clients pass `usage_start_date_time` in Pacific time."]]