P positrom2 Active Member Licensed User Longtime User Jul 22, 2014 #1 B4X: DateTime.DateFormat = "yyMMddHHmmss" dt=DateTime.now Msgbox(dt, "YYMMDDHHMMSS") With date of July 22, 12:09 The message box shows "1406023759324". I don't understand. Could somebody explain?
B4X: DateTime.DateFormat = "yyMMddHHmmss" dt=DateTime.now Msgbox(dt, "YYMMDDHHMMSS") With date of July 22, 12:09 The message box shows "1406023759324". I don't understand. Could somebody explain?
Erel B4X founder Staff member Licensed User Longtime User Jul 22, 2014 #2 This is the correct code: B4X: DateTime.DateFormat = "yyMMddHHmmss" Dim dt As Long =DateTime.now Log(DateTime.Date(dt)) Log(DateTime.Time(dt)) Upvote 0
This is the correct code: B4X: DateTime.DateFormat = "yyMMddHHmmss" Dim dt As Long =DateTime.now Log(DateTime.Date(dt)) Log(DateTime.Time(dt))
eps Expert Licensed User Longtime User Jul 22, 2014 #3 The long number is the number of ticks. See here for an explanation http://www.b4x.com/android/help/core.html#datetime Upvote 0
The long number is the number of ticks. See here for an explanation http://www.b4x.com/android/help/core.html#datetime
P positrom2 Active Member Licensed User Longtime User Jul 22, 2014 #4 So that conversion is needed... Thanks to Erel,eps Upvote 0
eps Expert Licensed User Longtime User Jul 22, 2014 #5 It depends on what you are attempting to achieve... Upvote 0