RE: Entityimage_timestamp field on contact entity
hi
the entityimage field in the Contact entity stores the customer's profile picture. The entityimages_timestamp field is a system field that stores the timestamp of the last time the entityimage field was updated.
The entityimages_timestamp field is stored as a 64-bit integer value that represents the number of 100-nanosecond intervals since January 1, 1601 (Coordinated Universal Time). To convert this value to a proper timestamp, you can use the following formula:
Convert the entityimages_timestamp value to a DateTime object:
long timestamp = (long)contact["entityimages_timestamp"];
DateTime dateTime = new DateTime(1601, 1, 1, 0, 0, 0, DateTimeKind.Utc)
.AddTicks(timestamp);
Convert the DateTime object to a string representation:
string timestampString = dateTime.ToString("yyyy-MM-dd HH:mm:ss");
This will give you a string representation of the timestamp in the format "yyyy-MM-dd HH:mm:ss". You can then use this string to display or compare the timestamp as needed.
DAniele