BonCodeAJP13Namespace.BonCodeAJP13Packet.GetDateTime C# (CSharp) Method

GetDateTime() protected static method

Get the DateTime value from the array starting from the position Pos
protected static GetDateTime ( byte Data, System.DateTime &Value, int Pos ) : int
Data byte
Value System.DateTime
Pos int
return int
        protected static int GetDateTime(byte[] Data, ref DateTime Value, int Pos)
        {
            Int64 LongValue = 0;
            int TempPos = GetInt64(Data, ref LongValue, Pos);
            Value = DateTime.FromBinary(LongValue);
            return TempPos;
        }