Ubidots library c# Visual Studio 2017


I’m using the ubidots library

with Visual studio 2017
Since I need to read both the value of my entry and the date in the ubidots database I had this problem:

int asd = ExampleValues [x] .GetValue (); //works well

long Time = ExampleValues [0] .GetTimestamp (); //it does not work
and visual from error

  • $ exception {“Specified cast invalid.”} System.InvalidCastException

where am I wrong?

there is another way to read the DATETIME of the recording of that data (x) on ubidots
Thanks in advance