I need "Ticks As Long" for a Timestamp-ID

JOTHA

Well-Known Member
Licensed User
Longtime User
Hello Forum,

I need "Ticks As Long" for a Timestamp-ID.

Does somebody know how to get "Ticks As Long" as a number?
I tried several times but I always got a Date, a Time, or an Error-Message.
 

Cableguy

Expert
Licensed User
Longtime User
Ticks are Long by default, what exactly do you need to do?

ie: to get the current time ticks value, just use
B4X:
a=datetime.now

or to get the ticks of a particular date just use
B4X:
 a=datetime.dateparse("20/12/2000")
 
Last edited:
Upvote 0

JOTHA

Well-Known Member
Licensed User
Longtime User
Hi Cableguy,

ie: to get the current time ticks value, just use
B4X:
a=datetime.now

... this is exactly what I needed!
I tried always a=DateTime(Now), that was wrong!

THANK YOU for your very fast help! :D
 
Upvote 0
Top