DateTime .AddTicks

Hi All,

I have a datetime variable and am trying how to use the .addTicks function.

Any idea what this function does? I also saw that the .addTicks function requires a ‘long’ data type which I am unable to find in the list of data types

Appreciate any help

Thanks in advance!!


A single tick represents one hundred nanoseconds or one ten-millionth of a second. There are 10,000 ticks in a millisecond, or 10 million ticks in a second.

Please refer


Hi @Madhavi

Thanks for the fast reply. I will try it out!

By the way any idea how to create a variable with ‘long’ type? I cant seem to find it in the “Browse for Types…” window.

Currently I am just using the “GenericValue” type. But would wish to change this to a ‘long’ type


You can create a variable with datatype int64 and pass that in AddTicks method.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.