Click or drag to resize

CommonDateTimeConvertToDateTime Method (String, DateTime)

Parses a string and converts it to a datetime.

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public static DateTime ConvertToDateTime(
	string input,
	DateTime defaultValue
)

Parameters

input
Type: SystemString
Users input in local time
defaultValue
Type: SystemDateTime
Returns this value if incorrect format

Return Value

Type: DateTime
Returns a DateTime in UTC format
See Also