EssentialsDate.Parse method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

Parse(string)

Static

Converts the string representation of a date to its EssentialsDate equivalent by using the conventions of the current thread culture.

public static EssentialsDate Parse(string input)

Parameters

input String

A string that contains a date to convert.

Returns

An object that is equivalent to the date contained in input.

Parse(string, IFormatProvider)

Static

Converts the string representation of a date to its EssentialsDate equivalent by using culture-specific format information.

public static EssentialsDate Parse(string input, IFormatProvider provider)

Parameters

input String

A string that contains a date to convert.

provider IFormatProvider

An object that supplies culture-specific format information about input.

Returns

An object that is equivalent to the date contained in input as specified by provider.

Parse(string, IFormatProvider, DateTimeStyles)

Static

Converts the string representation of a dat to its EssentialsDate equivalent by using culture-specific format information and a formatting style.

public static EssentialsDate Parse(string input, IFormatProvider provider, DateTimeStyles styles)

Parameters

input String

A string that contains a date to convert.

provider IFormatProvider

An object that supplies culture-specific format information about input.

A bitwise combination of the enumeration values that indicates the style elements that can be present in input for the parse operation to succeed, and that defines how to interpret the parsed date in relation to the current time zone or the current date. A typical value to specify is System.Globalization.DateTimeStyles.None.

Returns

An object that is equivalent to the date contained in input as specified by provider and styles.