This is not nice, but here is your answer: http://codemonkey.joeuser.com/article/308527
DateTime.Ticks represents the number of 100-nanosecond intervals from 12:00 to midnight, January 1, 0001.
JavaScript has Date.getTime() , which measures the number of milliseconds since January 1, 1970, so if you are only after something unique, then you can use this. Obviously, this is not directly comparable to DateTime.Ticks .
source share