TextAnalysisModelFactory.DateValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of DateValue.
public static Azure.AI.Language.Text.DateValue DateValue (string timex = default, string value = default, Azure.AI.Language.Text.TemporalModifier? modifier = default);
static member DateValue : string * string * Nullable<Azure.AI.Language.Text.TemporalModifier> -> Azure.AI.Language.Text.DateValue
Public Shared Function DateValue (Optional timex As String = Nothing, Optional value As String = Nothing, Optional modifier As Nullable(Of TemporalModifier) = Nothing) As DateValue
Parameters
- timex
- String
An extended ISO 8601 date/time representation as described in (https://github.com/Microsoft/Recognizers-Text/blob/master/Patterns/English/English-DateTime.yaml).
- value
- String
The actual time that the extracted text denote.
- modifier
- Nullable<TemporalModifier>
Modifier for datetime to indicate point of reference like before, after etc.
Returns
A new DateValue instance for mocking.