Function that creates a timestamp in c#
Posted
by Konstantinos
on Stack Overflow
See other posts from Stack Overflow
or by Konstantinos
Published on 2009-05-21T09:28:34Z
Indexed on
2010/06/18
3:13 UTC
Read the original article
Hit count: 365
Hi there,
I was wondering, is there a way to create a timestamp in c# from a datetime? I need a millisecond precision value that also works in Compact Framework(saying that since DateTime.ToBinary() does not exist in CF).
My problem is that i want to store this value in a database agnostic way so i can sortby it later and find out which value is greater from another etc.
© Stack Overflow or respective owner