 | DataConverterToModel(TS) Method |
Converts a
TS instance to a
DateTime instance.
Namespace: SanteDB.Messaging.HL7Assembly: SanteDB.Messaging.HL7 (in SanteDB.Messaging.HL7.dll) Version: 3.0.2081-alpha+e82e56b43bfab0d631a8b4d1ba2ab44b8aff02dd
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 TS
- The TS instance to be converted.
Return Value
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