Class DateExtensions (2.15.0)

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
Name Description
dateTime DateTime

The DateTime instance being converted.

Returns
Type Description
Date

The Date.

ToDate(DateTimeOffset)

public static Date ToDate(this DateTimeOffset dateTimeOffset)

Converts the Date part of DateTimeOffset to Date.

Parameter
Name Description
dateTimeOffset DateTimeOffset

The DateTimeOffset instance being converted.

Returns
Type Description
Date

The converted Date.