Class DateExtensions

public static class DateExtensions

Extension methods built for Date.

Inheritance

Object > DateExtensions

Namespace

Google.Type

Assembly

Google.Api.CommonProtos.dll

Methods

ToDate(DateTime)

public static Date ToDate(this DateTime dateTime)

Converts the Date part of DateTime to Date.

Parameter
TypeNameDescription
DateTimedateTime

The DateTime instance being converted.

Returns
TypeDescription
Date

The Date.

ToDate(DateTimeOffset)

public static Date ToDate(this DateTimeOffset dateTimeOffset)

Converts the Date part of DateTimeOffset to Date.

Parameter
TypeNameDescription
DateTimeOffsetdateTimeOffset

The DateTimeOffset instance being converted.

Returns
TypeDescription
Date

The converted Date.