M Mike Maurice Member Licensed User Longtime User Apr 9, 2014 #1 This is from the online documentation. Log("Today is: " & DateTime.Date(DateTime.Now))
DonManfred Expert Licensed User Longtime User Apr 9, 2014 #2 Make sure you have set DateFormat and timeFormat correctly What shows the log when using this code? B4X: log(DateTime.DateFormat) log(DateTime.TimeFormat) 'DateTime.DateFormat = "M/d/yyyy" 'example: 12/28/2013 'DateTime.TimeFormat="h:mm:ss a" '5:35:19 PM See here for more informations on Formats
Make sure you have set DateFormat and timeFormat correctly What shows the log when using this code? B4X: log(DateTime.DateFormat) log(DateTime.TimeFormat) 'DateTime.DateFormat = "M/d/yyyy" 'example: 12/28/2013 'DateTime.TimeFormat="h:mm:ss a" '5:35:19 PM See here for more informations on Formats
eps Expert Licensed User Longtime User Apr 10, 2014 #3 or combine both of the above for both together.