Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.15 KB

Assorted.Utils.Serialization.ConvertUtils.StrToDate.md

File metadata and controls

31 lines (19 loc) · 1.15 KB

ConvertUtils.StrToDate(string) Method

Namespace: Assorted.Utils.Serialization
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0

Converts the specified standard string representation of a date to its System.DateTime equivalent. The leading and trailing white spaces are ignored.

Syntax

public static DateTime? StrToDate(string value)

Parameters

value: string
The string representation of a date in "yyyy'-'MM'-'dd" format.

Return Value

DateTime?
A System.DateTime whose value is represented by value if the operation succeeds; otherwise, null.

See Also


This document is generated by DG.