whuang
6 years agoRegular Contributor
Anyway to store milliseconds in VBScript?
Hi Support,
I would like to retrive a date/time value from datebase, and store the value in a variable in VBScript, but it automatically round up the milliseconds for me, which mess up my seconds in some case. Is there anyway I can keep the milliseconds using VBScript? or does TC has a buildin function to store the time value with milliseconds?
Thanks!
Hi,
I think that you need to check what value and in what format is retrieved from the database and properly assign it to VBScript variable.
Several links that might inspire:
https://www.tutorialspoint.com/vbscript/vbscript_date.htm
https://stackoverflow.com/questions/43736387/format-time-up-to-milliseconds-to-use-in-log-files
https://www.tek-tips.com/viewthread.cfm?qid=839835