nibbo Active Member Licensed User Longtime User Jun 30, 2014 #1 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
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
NJDude Expert Licensed User Longtime User Jun 30, 2014 #2 I'm assuming you made a mistake posting this line: B4X: Msgbox(DateTime.GetYear(lngDate), "") But, I get 2014. Last edited: Jun 30, 2014 Upvote 0
I'm assuming you made a mistake posting this line: B4X: Msgbox(DateTime.GetYear(lngDate), "") But, I get 2014.
nibbo Active Member Licensed User Longtime User Jun 30, 2014 #3 NJDude said: I'm assuming you made mistake posting this line: B4X: Msgbox(DateTime.GetYear(lngDate), "") But, I get 2014. Click to expand... 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
NJDude said: I'm assuming you made mistake posting this line: B4X: Msgbox(DateTime.GetYear(lngDate), "") But, I get 2014. Click to expand... 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.