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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eDateRange\u003c/code\u003e class within the Google Cloud Channel v1 API, with the latest version being 2.14.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDateRange\u003c/code\u003e class is used to represent date ranges for invoices or usage, implementing multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDateRange\u003c/code\u003e includes properties for specifying the start and end dates of invoice periods (\u003ccode\u003eInvoiceStartDate\u003c/code\u003e, \u003ccode\u003eInvoiceEndDate\u003c/code\u003e) and usage periods (\u003ccode\u003eUsageStartDateTime\u003c/code\u003e, \u003ccode\u003eUsageEndDateTime\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe document also provides detailed information on the parameters and their descriptions for each property.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists the available versions of the DateRange class, spanning from version 1.0.0 up to the most recent version of 2.14.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Channel v1 API - Class DateRange (2.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1.DateRange)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.14.0/Google.Cloud.Channel.V1.DateRange)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.13.0/Google.Cloud.Channel.V1.DateRange)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.12.0/Google.Cloud.Channel.V1.DateRange)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.11.0/Google.Cloud.Channel.V1.DateRange)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.10.0/Google.Cloud.Channel.V1.DateRange)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.9.0/Google.Cloud.Channel.V1.DateRange)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.8.0/Google.Cloud.Channel.V1.DateRange)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.7.0/Google.Cloud.Channel.V1.DateRange)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.6.0/Google.Cloud.Channel.V1.DateRange)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.5.0/Google.Cloud.Channel.V1.DateRange)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.4.0/Google.Cloud.Channel.V1.DateRange)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.3.0/Google.Cloud.Channel.V1.DateRange)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.2.0/Google.Cloud.Channel.V1.DateRange)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.1.0/Google.Cloud.Channel.V1.DateRange)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/2.0.0/Google.Cloud.Channel.V1.DateRange)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.7.0/Google.Cloud.Channel.V1.DateRange)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.6.0/Google.Cloud.Channel.V1.DateRange)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.5.0/Google.Cloud.Channel.V1.DateRange)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.4.0/Google.Cloud.Channel.V1.DateRange)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.3.0/Google.Cloud.Channel.V1.DateRange)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.2.0/Google.Cloud.Channel.V1.DateRange)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.1.0/Google.Cloud.Channel.V1.DateRange)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Channel.V1/1.0.0/Google.Cloud.Channel.V1.DateRange) \n\n [Obsolete]\n public sealed class DateRange : IMessage\u003cDateRange\u003e, IEquatable\u003cDateRange\u003e, IDeepCloneable\u003cDateRange\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Channel v1 API class DateRange.\n\nA representation of usage or invoice date ranges. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DateRange \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DateRange](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1.DateRange), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DateRange](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1.DateRange), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DateRange](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1.DateRange), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Channel.V1](/dotnet/docs/reference/Google.Cloud.Channel.V1/latest/Google.Cloud.Channel.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Channel.V1.dll\n\nConstructors\n------------\n\n### DateRange()\n\n public DateRange()\n\n### DateRange(DateRange)\n\n public DateRange(DateRange other)\n\nProperties\n----------\n\n### InvoiceEndDate\n\n public Date InvoiceEndDate { get; set; }\n\nThe latest invoice date (inclusive).\n\nIf this value is not the last day of a month, this will move it forward to\nthe last day of the given month.\n\n### InvoiceStartDate\n\n public Date InvoiceStartDate { get; set; }\n\nThe earliest invoice date (inclusive).\n\nIf this value is not the first day of a month, this will move it back to\nthe first day of the given month.\n\n### UsageEndDateTime\n\n public DateTime UsageEndDateTime { get; set; }\n\nThe latest usage date time (exclusive).\n\nIf you use time groupings (daily, weekly, etc), each group uses\nmidnight to midnight (Pacific time). The usage end date is\nrounded down to include all usage from the specified date. We recommend\nthat clients pass `usage_start_date_time` in Pacific time.\n\n### UsageStartDateTime\n\n public DateTime UsageStartDateTime { get; set; }\n\nThe earliest usage date time (inclusive).\n\nIf you use time groupings (daily, weekly, etc), each group uses\nmidnight to midnight (Pacific time). The usage start date is\nrounded down to include all usage from the specified date. We recommend\nthat clients pass `usage_start_date_time` in Pacific time."]]