How can I exactly construct a time stamp of actual time with milliseconds precision?
I need something like 16.4.2013 9:48:00:123. Is this possible? I have an applic
As far as I understand the question, you can go for:
DateTime dateTime = DateTime.Now; DateTime dateTimeInMilliseconds = dateTime.AddTicks(-1 * dateTime.Ticks % 10000);
This will cut off ticks smaller than 1 millisecond.