In the SqlMetadataStore created by the FileSyncProvider there is a
CreationTime column, which is stored as a bigint. When I use the following code to read this value and convert it to a
DateTime object the year is incorrect by 1600 years, i.e. when it should be 2010, it is actually 0410:
DateTime.FromBinary((long)row["CreationTime"])
I can fix this by adding 1600 years, but I'd like to know why this offset is needed? Is there a better way to read it in?
DateTime.FromBinary((long)row["CreationTime"]).AddYears(1600)
Is there any documentation of the other columns in the metadata store?