I have a Int64
variable (eg : 637383629352337674). I have to use this variable to create a DateTime
object which uses this number.
So I used the following constructor to create the DateTime object :
public DateTime (long ticks);
But I observed that I am not able to get the milliseconds printed when I use the ToString()
method of DateTime
class.
It would be possible to get the millisecinds printed with DateTimeOffset
being concatenated with the ToString()
of DateTime object, but I don't want to do that.
How can I get a DateTime object with milliseconds ?