DateBase.ValueToDate Method (Int64)

Converts the specified PlcOpen dateValue in ticks to a DateTime Object

Namespace:  TwinCAT.PlcOpen
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public static DateTime ValueToDate(
    long dateValue
)

VB

Public Shared Function ValueToDate ( 
    dateValue As Long
) As DateTime

Parameters

dateValue

Type: System.Int64
The date value.

Return Value

Type: DateTime

Reference

DateBase Class

ValueToDate Overload

TwinCAT.PlcOpen Namespace