date time
-
-
hi i want to fetch time frome system with milliseconds in the format of hr:min:s:milliseconds how we can do this pls tell me if not possible inthis way then tell me some other way in which we can fetch the same or equivalent
with regards Balagurunathan.B
-
hi i want to fetch time frome system with milliseconds in the format of hr:min:s:milliseconds how we can do this pls tell me if not possible inthis way then tell me some other way in which we can fetch the same or equivalent
with regards Balagurunathan.B
try this dim stringDate as string stringDate = Format(dateValue,"HH:mm:ss") --dateValue is the given date --format function returns string if you want to have a datevalue then try this: dim newDate as datetime newDate = Date.Parse(Format(dateValue,"HH:mm:ss")) --hope this would help!
-
try this dim stringDate as string stringDate = Format(dateValue,"HH:mm:ss") --dateValue is the given date --format function returns string if you want to have a datevalue then try this: dim newDate as datetime newDate = Date.Parse(Format(dateValue,"HH:mm:ss")) --hope this would help!
yeah, now add .fff to the format string to get fractions of a second.
Luc Pattyn [My Articles] [Forum Guidelines]