Class DateExtensions
Extension methods built for Date.
Inheritance
System.Object
DateExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Type
Assembly: Google.Api.CommonProtos.dll
Syntax
public static class DateExtensions
Methods
ToDate(DateTime)
Converts the System.DateTime.Date part of System.DateTime to Date.
Declaration
public static Date ToDate(this DateTime dateTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | dateTime | The System.DateTime instance being converted. |
Returns
Type | Description |
---|---|
Date | The Date. |
ToDate(DateTimeOffset)
Converts the System.DateTimeOffset.Date part of System.DateTimeOffset to Date.
Declaration
public static Date ToDate(this DateTimeOffset dateTimeOffset)
Parameters
Type | Name | Description |
---|---|---|
System.DateTimeOffset | dateTimeOffset | The System.DateTimeOffset instance being converted. |
Returns
Type | Description |
---|---|
Date | The converted Date. |