Ads API .NET library
|
A utility class that allows you to build Datetime objects from strings. More...
Static Public Member Functions | |
static AdManagerDateTime | FromString (string dateString, string timeZoneId) |
Converts the string in format yyyyMMdd HH:mm:ss to a DateTime object with the specified time zone. More... | |
static AdManagerDateTime | FromDateTime (System.DateTime dateTime, string timeZoneId) |
Converts a System.DateTime object to a AdManager DateTime object with the specified timeZoneId. Does not perform time zone conversion. This means the returned DateTime value may not represent the same instant as the System.DateTime value. More... | |
static string | ToString (AdManagerDateTime dateTime, string patternText) |
Formats the value of the DFP date time using the specified NodaTime compatibleformat. More... | |
static string | ToString (AdManagerDateTime dateTime, string patternText, IFormatProvider formatProvider) |
Formats the value of the DFP date time using the specified NodaTime compatibleformat. More... | |
A utility class that allows you to build Datetime objects from strings.
|
inlinestatic |
Converts a System.DateTime object to a AdManager DateTime object with the specified timeZoneId. Does not perform time zone conversion. This means the returned DateTime value may not represent the same instant as the System.DateTime value.
dateTime | The DateTime object. |
timeZoneId | The timeZoneId to use. |
Referenced by Google.Api.Ads.AdManager.Examples.CSharp.v202402.GetAvailabilityForecast.Run(), Google.Api.Ads.AdManager.Examples.CSharp.v202402.GetTrafficData.Run(), Google.Api.Ads.AdManager.Examples.CSharp.v202402.GetMcmEarnings.Run(), Google.Api.Ads.AdManager.Examples.CSharp.v202402.GetRecentlyUpdatedLineItems.Run(), Google.Api.Ads.AdManager.Examples.CSharp.v202402.GetOrdersStartingSoon.Run(), and Google.Api.Ads.AdManager.Examples.CSharp.v202402.GetRecentlyModifiedContent.Run().
|
inlinestatic |
Converts the string in format yyyyMMdd HH:mm:ss to a DateTime object with the specified time zone.
dateString | The date string. |
timeZoneId | The timeZoneId to set. |
|
inlinestatic |
Formats the value of the DFP date time using the specified NodaTime compatibleformat.
Referenced by Google.Api.Ads.AdManager.Examples.CSharp.v202402.GetAvailabilityForecast.Run().
|
inlinestatic |
Formats the value of the DFP date time using the specified NodaTime compatibleformat.