Skip to content

I solved datetime missing lines #5

Description

@Hasanajouz

I found that you didn't add any code to read datetime values: so i solved it for foxpro files:
you can add just this to "DbfValueDateTime.cs":

byte[] b = binaryReader.ReadBytes(8);
int i1 = BitConverter.ToInt32(b,0);
int i2 = BitConverter.ToInt32(b, 4);
Value = new DateTime(1, 1, 1).AddDays(i1).Subtract(TimeSpan.FromDays(1721426)).AddMilliseconds(i2);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions