S sohil66 New Member Licensed User Longtime User Feb 10, 2014 #1 I have problem about the date : I use this code : =========== Dim now As Long Dim dt As String 'DateTime.DateFormat = "yyyyMMdd" ' See this page regarding uppercase letters. dt = DateTime.Date(now) Msgbox (dt,"") =========== and run the code in Android Emulator : I get error date : 1/1/1970 ============= =========== I Check the emulator date and it correct(Today date) =========== Attachments error1.png 70.4 KB · Views: 413
I have problem about the date : I use this code : =========== Dim now As Long Dim dt As String 'DateTime.DateFormat = "yyyyMMdd" ' See this page regarding uppercase letters. dt = DateTime.Date(now) Msgbox (dt,"") =========== and run the code in Android Emulator : I get error date : 1/1/1970 ============= =========== I Check the emulator date and it correct(Today date) ===========
S sohil66 New Member Licensed User Longtime User Feb 10, 2014 #2 See attached image for the Emulator Date Attachments error2.png 240.9 KB · Views: 433 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 10, 2014 #3 Change it to: Code: Copy dt = DateTime.Date(DateTime.Now) Upvote 0