Android Question More DateTime confusion

nibbo

Active Member
Licensed User
Longtime User
How do I get todays date?
I tried
B4X:
Dim lngDate as Long
lngDate = DateTime.Now
But if I do a MsgBox(DateTime.GetYea(lngDate)) it display 1982
 

nibbo

Active Member
Licensed User
Longtime User
I'm assuming you made mistake posting this line:
B4X:
Msgbox(DateTime.GetYear(lngDate), "")
But, I get 2014.
You are correct, I did have second parameter set to "".
However, the date on my tablet IS 1982 for some reason, not sure how that happened!
Please ignore this thread everyone.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…