Class DateTimeValue
Represents Date/Time values in the evaluation of DecisionModels.
Inherited Members
Namespace: Quantellia.WMServer.DecisionModeler.ValueTypes
Assembly: WMServer.dll
Syntax
public class DateTimeValue : AtomicElementValue
Constructors
DateTimeValue()
Declaration
public DateTimeValue()
DateTimeValue(DateTime)
Declaration
public DateTimeValue(DateTime val)
Parameters
Type | Name | Description |
---|---|---|
DateTime | val |
Properties
Value
Declaration
public DateTime Value { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Methods
TryParseISO8601String(string, out DateTime)
Attempts to convert a string to Datetime adhering to strict ISO 8601 formatting. Will return false if unable to parse the string correctly.
Declaration
public static bool TryParseISO8601String(string str, out DateTime result)
Parameters
Type | Name | Description |
---|---|---|
string | str | the string to parse |
DateTime | result | The resulting DateTime |
Returns
Type | Description |
---|---|
bool | True, if parsed correctly. False otherwise. |