Snippet IT IT News, Programming, Internet and Blogging

18Apr/090

C#: Unix Time to .Net DateTime and Vice Versa

For some reasons, some programmer might store time values as Unix timestamp in database instead of standard SQL DateTime data type. The main reason to store time values as Unix timestamp is unknown but what I guess is for maximum database compatibility. Some old database does not support SQL DateTime data type.