0

We have a timestamp type column in our table.

I am trying to retrieve that is vb.net using data reader.

datareader.GetValue(dr.GetOrdinal("timestamp")).ToString()

It is not showing the value from the database. How should I retrieve the value? or how to cast it correctly?

T.S.
  • 18,195
  • 11
  • 58
  • 78
user1169809
  • 777
  • 3
  • 8
  • 10
  • 2
    You appear to be using two different data readers in that code. Either that is a likely candidate for your problem or you have provided code that is not representative of what you're actually doing. Also, you haven't explained what that code actually does do. – jmcilhinney Jun 26 '20 at 00:41
  • https://stackoverflow.com/a/8119407/8367626 – Mary Jun 26 '20 at 05:29
  • @Mary good catch. In this case, this is dupe question – T.S. Jun 26 '20 at 12:45

0 Answers0