 | DataConverterToModel Method (TS) |
Converts a
TS instance to a
DateTime instance.
Namespace:
SanteDB.Messaging.HL7
Assembly:
SanteDB.Messaging.HL7 (in SanteDB.Messaging.HL7.dll) Version: 2.2.1
Syntaxpublic static DateTime? ToModel(
this TS timestamp
)
<ExtensionAttribute>
Public Shared Function ToModel (
timestamp As TS
) As DateTime?
public:
[ExtensionAttribute]
static Nullable<DateTime> ToModel(
TS^ timestamp
)
[<ExtensionAttribute>]
static member ToModel :
timestamp : TS -> Nullable<DateTime>
Parameters
- timestamp
- Type: TS
The TS instance to be converted.
Return Value
Type:
NullableDateTimeReturns the converted date time instance or null.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
TS. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also