0

I am developing a asp.net web application with ado.net entity framework and MySQL as backend. I have taken some columns in DB as timestamp datatype when I get date from DB these fields of timestamp datatype returns null. In application these fields are mapped as datetimeoffset.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
SMeha
  • 61
  • 3
  • 8
  • possible duplicate of [How to convert UNIX timestamp to DateTime and vice versa?](http://stackoverflow.com/questions/249760/how-to-convert-unix-timestamp-to-datetime-and-vice-versa) – Konerak Aug 25 '11 at 06:44

1 Answers1

0

See the accepted answer to this post

How to convert a Unix timestamp to DateTime and vice versa?

You need to adapt the timestamps into datetimeoffset objects in .net.

Community
  • 1
  • 1
Michael Christensen
  • 1,768
  • 1
  • 13
  • 11