XPlat.Device.Display
XPlat.Storage.Pickers

NSDateExtensions

Namespace: XPlat.Extensions

Defines a collection of extensions for NSDate objects.

public static class NSDateExtensions

Supported platforms

Platform

Version

Xamarin.iOS

1.0

Static Methods

ToDateTimeOffset(this NSDate)

Converts an NSDate object to a DateTimeOffset object.

public static DateTimeOffset ToDateTimeOffset(this NSDate date)

Parameters

date (NSDate)

The date to convert to a DateTimeOffset.

Returns

Returns the converted DateTimeOffset value.