You can construct a DateTime object using the following constructor:
public DateTime(long ticks), with ticks being a date and time expressed in
100-nanosecond units.
So, what you can do to convert your decimal is the following:
decimal a = 1267.907M;
DateTime dt = new DateTime(Convert.ToInt64(a * 1E7M));
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.