Android Question sql get year

buras3

Active Member
Licensed User
Longtime User
hello all

I am trying for a long time now to get the year from a date
i am saving the date from the call log as Ticks
strftime('%Y',Date) AS Year just won't work I get -471 all the time
doe's anybody know how to get the year ??

tank you
michael
 

mangojack

Expert
Licensed User
Longtime User
try this ..

B4X:
Dim Y As String  
Y = DateTime.GetYear(Date) 'Date = call log date in ticks
Log  (Y)

Cheers mj
 
Last edited:
Upvote 0
Top